]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/lsp.vim
Long netrw's style seems to be useful
[dotfiles.git] / vim / .vim / plugin / lsp.vim
index 9a764211bfcf25a141a6731c8eadc05229ea6ac3..a342e3cfe3398e2a0075bc5fe5edd49b29dbccc3 100644 (file)
@@ -36,14 +36,22 @@ endfor
 var lspOpts = {
     ignoreMissingServer: true,
     autoComplete: false,
+
     autoHighlight: true,
     autoPopulateDiags: true,
+
+    # Lint warning only on status line, do not show near cursor
+    showDiagInPopup: false,
+    showDiagOnStatusLine: true,
     showSignature: false,
 }
 
+set omnifunc=g:LspOmniFunc
 autocmd VimEnter * call LspAddServer(lspServers)
 autocmd VimEnter * call LspOptionsSet(lspOpts)
 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>