summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index f07af80..de8366a 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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',