vim: configure go module

This commit is contained in:
2021-10-03 09:51:43 +02:00
parent 414bb0f90b
commit a6969ff360

View File

@@ -342,3 +342,7 @@ if v:version >= 700
au BufLeave * let b:winview = winsaveview() au BufLeave * let b:winview = winsaveview()
au BufEnter * if(exists('b:winview')) | call winrestview(b:winview) | endif au BufEnter * if(exists('b:winview')) | call winrestview(b:winview) | endif
endif endif
" https://github.com/golang/tools/blob/master/gopls/doc/vim.md
let g:go_def_mode='gopls'
let g:go_info_mode='gopls'