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:
parent
25ce872314
commit
2f68beeacb
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user