]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/lsp.vim
Async flake8
[dotfiles.git] / vim / .vim / plugin / lsp.vim
index e0350190cf7da022e5ba6530dabf88da4af1fe67..1adfbe5a9448533f7fcc4571e71b32ea57ecc26f 100644 (file)
@@ -16,17 +16,6 @@ for d in [
         path: "gopls",
         syncInit: true,
     },
-    {
-        filetype: ["python"],
-        path: "pyls",
-        syncInit: true,
-        workspaceConfig: {pyls: {
-            configurationSources: ["flake8"],
-            plugins: {
-                mccabe: {enabled: false},
-            },
-        }},
-    },
 ]
     if executable(d["path"])
         add(lspServers, d)
@@ -43,6 +32,7 @@ var lspOpts = {
 
 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>