From: Sergey Matveev Date: Tue, 11 Jan 2022 17:50:34 +0000 (+0300) Subject: Enable pyls only if it exists X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=78d4336b677292747a6f7f06071c1f0eb5af4a53;hp=eaa80545a66b7c5175ae32933ef5fbf8f2b355c2 Enable pyls only if it exists clangd and gopls are globally installed. pyls lives in venv. --- diff --git a/vim/.vim/ftplugin/python/lsp.vim b/vim/.vim/ftplugin/python/lsp.vim new file mode 100644 index 0000000..cd34fa5 --- /dev/null +++ b/vim/.vim/ftplugin/python/lsp.vim @@ -0,0 +1,3 @@ +if executable("pyls") + LSClientEnable +endif diff --git a/vim/.vim/plugin/lsp.vim b/vim/.vim/plugin/lsp.vim index 532b5e0..7b6d4ea 100644 --- a/vim/.vim/plugin/lsp.vim +++ b/vim/.vim/plugin/lsp.vim @@ -14,6 +14,7 @@ let g:lsc_server_commands = { \ "mccabe": {"enabled": v:false}, \ }, \ }}, + \ "enabled": v:false, \ }, \ } let g:lsc_auto_map = {