nvim: Use gopls for formatting and imports
This commit is contained in:
parent
8e135e03ff
commit
4774d7a7a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue