diff --git a/.vimrc-example b/.vimrc-example index 2eb91dc..111aa14 100644 --- a/.vimrc-example +++ b/.vimrc-example @@ -1,4 +1,17 @@ augroup vimgo_local au! - au FileType go nmap gr :term ++hidden ++open nixGL go run -v . + + function! Runhidden() + cd `git rev-parse --show-toplevel` + echo '...running go-xkcdreader' + term ++hidden ++open nixGL go run -tags wayland -v . + endfunction + + au FileType go nmap gr :exec Runhidden() + au FileType go nmap r :exec Runhidden() + au FileType go nmap gc (go-coverage-toggle) + + " if using vim-go, this sets gofumpt as the main formatter + let g:go_gopls_gofumpt=1 + let g:go_fmt_command='gofumpt' augroup END