]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/lsp.vim
Faster LSP diagnostics moving
[dotfiles.git] / vim / .vim / plugin / lsp.vim
index ad29aba42b37c9ccaec220714c69eb18578ebbff..62e8f49139a90d7eeb88aff2a50687856f5016da 100644 (file)
@@ -1,18 +1,18 @@
 vim9script
 
 # go get golang.org/x/tools/gopls@latest
-# pip install 'python-language-server[all]'
+# pip install "python-language-server[all]"
 
 var lspServers: list<dict<any>>
 
 for d in [
     {
-        filetype: ["c", "cpp"],
+        filetype: ["c", "ch", "cpp"],
         path: "clangd",
         args: ["--log=error"],
     },
     {
-        filetype: ["go"],
+        filetype: ["go", "gomod"],
         path: "gopls",
         syncInit: true,
     },
@@ -47,3 +47,5 @@ autocmd CursorMoved * silent! LspDiagCurrent
 nmap gd :LspGotoDefinition<CR>
 nmap <C-W>gd :vert LspGotoDefinition<CR>
 nmap <F6> :lopen<CR>
+nmap [l :LspDiagPrev<CR>
+nmap ]l :LspDiagNext<CR>