1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 13:00:05 +08:00

fix(lsp): disable jedi when pyright enabled

This commit is contained in:
wsdjeg 2022-03-31 13:19:01 +08:00
parent 25ce872314
commit 2f68beeacb

View File

@ -98,6 +98,7 @@ function! SpaceVim#layers#lang#python#plugins() abort
let plugins = [] let plugins = []
" python " python
if !SpaceVim#layers#lsp#check_filetype('python') if !SpaceVim#layers#lsp#check_filetype('python')
\ && !SpaceVim#layers#lsp#check_server('pyright')
if has('nvim') if has('nvim')
call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}]) call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}])
" in neovim, we can use deoplete-jedi together with jedi-vim, " in neovim, we can use deoplete-jedi together with jedi-vim,