1
0
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:
代君 2021-12-05 10:23:50 +08:00 committed by GitHub
parent 1e7fbd3fda
commit 072f7245a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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