1
0
Fork 0

nvim: Use gopls for formatting and imports

This commit is contained in:
Jeremy Kaplan 2021-11-01 21:56:31 -07:00
commit 4774d7a7a0

View file

@ -221,6 +221,7 @@ let g:python_highlight_all = 1
" Disable vim-go's gd mapping now that nvim-lspconfig uses it. " Disable vim-go's gd mapping now that nvim-lspconfig uses it.
let g:go_def_mapping_enabled = 0 let g:go_def_mapping_enabled = 0
let g:go_fmt_command = "gopls"
let g:go_highlight_build_constraints = 1 let g:go_highlight_build_constraints = 1
let g:go_highlight_interfaces = 1 let g:go_highlight_interfaces = 1
let g:go_highlight_functions = 1 let g:go_highlight_functions = 1
@ -228,7 +229,6 @@ let g:go_highlight_methods = 1
let g:go_highlight_operators = 1 let g:go_highlight_operators = 1
let g:go_highlight_structs = 1 let g:go_highlight_structs = 1
let g:go_highlight_types = 1 let g:go_highlight_types = 1
let g:go_fmt_command = "goimports"
let g:buffergator_viewport_split_policy = 'B' let g:buffergator_viewport_split_policy = 'B'
let g:buffergator_autoupdate = 1 let g:buffergator_autoupdate = 1