update .vimrc-example [skip ci]
This commit is contained in:
parent
7540300857
commit
12c7003570
@ -1,4 +1,17 @@
|
|||||||
augroup vimgo_local
|
augroup vimgo_local
|
||||||
au!
|
au!
|
||||||
au FileType go nmap <leader>gr :term ++hidden ++open nixGL go run -v .<cr>
|
|
||||||
|
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 <leader>gr :exec Runhidden()<cr>
|
||||||
|
au FileType go nmap <leader>r :exec Runhidden()<cr>
|
||||||
|
au FileType go nmap <leader>gc <Plug>(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
|
augroup END
|
||||||
|
Loading…
Reference in New Issue
Block a user