mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:30:07 +08:00
fix(lang#python): fix g d key binding
This commit is contained in:
parent
1e7fbd3fda
commit
072f7245a9
@ -266,9 +266,9 @@ endf
|
|||||||
function! s:go_to_def() abort
|
function! s:go_to_def() abort
|
||||||
if SpaceVim#layers#lsp#check_filetype('python')
|
if SpaceVim#layers#lsp#check_filetype('python')
|
||||||
\ || SpaceVim#layers#lsp#check_server('pyright')
|
\ || SpaceVim#layers#lsp#check_server('pyright')
|
||||||
call jedi#goto()
|
|
||||||
else
|
|
||||||
call SpaceVim#lsp#go_to_def()
|
call SpaceVim#lsp#go_to_def()
|
||||||
|
else
|
||||||
|
call jedi#goto()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user