aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-09 00:08:53 +0800
committerGuangxiong Lin <[email protected]>2022-04-09 00:08:53 +0800
commit2403f3bf9a360c7ae40b2292183fc77d006a6fba (patch)
tree01c008805cc0fe34a09c4de1904c991ef04c1557
parentb8a0345ddde864e513d764a673fdf98376a460b5 (diff)
downloaddotfiles-2403f3bf9a360c7ae40b2292183fc77d006a6fba.tar.gz
dotfiles-2403f3bf9a360c7ae40b2292183fc77d006a6fba.tar.bz2
dotfiles-2403f3bf9a360c7ae40b2292183fc77d006a6fba.zip
Use pylsp in vim
-rw-r--r--.vim/after/plugin/lsp.vim8
1 files changed, 8 insertions, 0 deletions
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',