363 augroup vim-lsp |
363 augroup vim-lsp |
364 autocmd! |
364 autocmd! |
365 autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() |
365 autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() |
366 augroup END |
366 augroup END |
367 |
367 |
368 " go install mvdan.cc/gofumpt@latest |
|
369 let g:lsp_settings = { |
368 let g:lsp_settings = { |
370 \ 'gopls': { |
369 \ 'gopls': { |
371 \ 'workspace_config': { 'gopls': { 'formatter.gofumpt': v:true } }, |
370 \ 'workspace_config': { 'gopls': { 'formatter.gofumpt': v:true } }, |
372 \ }, |
371 \ }, |
373 \ } |
372 \ } |