]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Enable pyls only if it exists
authorSergey Matveev <stargrave@stargrave.org>
Tue, 11 Jan 2022 17:50:34 +0000 (20:50 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 27 Jan 2022 11:35:14 +0000 (14:35 +0300)
clangd and gopls are globally installed. pyls lives in venv.

vim/.vim/ftplugin/python/lsp.vim [new file with mode: 0644]
vim/.vim/plugin/lsp.vim

diff --git a/vim/.vim/ftplugin/python/lsp.vim b/vim/.vim/ftplugin/python/lsp.vim
new file mode 100644 (file)
index 0000000..cd34fa5
--- /dev/null
@@ -0,0 +1,3 @@
+if executable("pyls")
+    LSClientEnable
+endif
index 532b5e02b20028473a4f6e30f9c341a4c89bb6a2..7b6d4eadefc902b87958547b634c0d81bb3cfa5e 100644 (file)
@@ -14,6 +14,7 @@ let g:lsc_server_commands = {
     \             "mccabe": {"enabled": v:false},
     \         },
     \     }},
+    \     "enabled": v:false,
     \ },
 \ }
 let g:lsc_auto_map = {