diff options
| -rw-r--r-- | .vimrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -125,6 +125,17 @@ if executable('gopls') \ call execute('LspCodeActionSync source.organizeImports') endif +if executable('gnopls') + au User lsp_setup call lsp#register_server({ + \ 'name': 'gnopls', + \ 'cmd': {server_info->['gnopls', '-remote=auto']}, + \ 'allowlist': ['gno', 'gnomod'], + \ }) + autocmd BufWritePre *.gno + \ call execute('LspDocumentFormatSync') | + \ call execute('LspCodeActionSync source.organizeImports') +endif + if executable('clangd') au User lsp_setup call lsp#register_server({ \ 'name': 'clangd', |
