1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:30:04 +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 = []
" python
if !SpaceVim#layers#lsp#check_filetype('python')
\ && !SpaceVim#layers#lsp#check_server('pyright')
if has('nvim')
call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}])
" in neovim, we can use deoplete-jedi together with jedi-vim,