From 056048e9df3a280074ad9b937dca2c703584e492 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 25 Oct 2023 00:22:21 +0800 Subject: Enable gopls in gomod --- .vim/after/plugin/lsp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 8a853e7..04a9647 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -27,7 +27,7 @@ if executable('gopls') au User lsp_setup call lsp#register_server({ \ 'name': 'gopls', \ 'cmd': {server_info->['gopls']}, - \ 'allowlist': ['go'], + \ 'allowlist': ['go', 'gomod'], \ 'initialization_options': { \ 'ui.completion.usePlaceholders': v:true, \ }, -- cgit v1.2.3