From 2403f3bf9a360c7ae40b2292183fc77d006a6fba Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 9 Apr 2022 00:08:53 +0800 Subject: Use pylsp in vim --- .vim/after/plugin/lsp.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 6066caa..9183f7d 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -1,6 +1,14 @@ let g:lsp_diagnostics_enabled = 0 let g:lsp_document_code_action_signs_enabled = 0 +if executable('pylsp') + au User lsp_setup call lsp#register_server({ + \ 'name': 'pylsp', + \ 'cmd': {server_info->['pylsp']}, + \ 'allowlist': ['python'], + \ }) +endif + if executable('gopls') au User lsp_setup call lsp#register_server({ \ 'name': 'gopls', -- cgit v1.2.3