mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 01:09:56 +08:00
feat(julia): add g d
key binding
close https://github.com/SpaceVim/SpaceVim/issues/4669
This commit is contained in:
parent
2b17afeaac
commit
48c57041f9
@ -36,11 +36,12 @@
|
|||||||
" To format julia code, you need to install `JuliaFormatter`, and the key
|
" To format julia code, you need to install `JuliaFormatter`, and the key
|
||||||
" binding is `SPC b f`
|
" binding is `SPC b f`
|
||||||
"
|
"
|
||||||
" If the lsp layer is enabled for python, the following key bindings can
|
" If the lsp layer is enabled for julia, the following key bindings can
|
||||||
" be used:
|
" be used:
|
||||||
" >
|
" >
|
||||||
" key binding Description
|
" key binding Description
|
||||||
" g D jump to type definition
|
" g D jump to type definition
|
||||||
|
" g d jump to definition
|
||||||
" SPC l e rename symbol
|
" SPC l e rename symbol
|
||||||
" SPC l x show references
|
" SPC l x show references
|
||||||
" SPC l h show line diagnostics
|
" SPC l h show line diagnostics
|
||||||
@ -105,6 +106,7 @@ function! s:language_specified_mappings() abort
|
|||||||
\ || SpaceVim#layers#lsp#check_server('julials')
|
\ || SpaceVim#layers#lsp#check_server('julials')
|
||||||
nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
|
nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
|
||||||
nnoremap <silent><buffer> gD :<C-u>call SpaceVim#lsp#go_to_typedef()<Cr>
|
nnoremap <silent><buffer> gD :<C-u>call SpaceVim#lsp#go_to_typedef()<Cr>
|
||||||
|
nnoremap <silent><buffer> gd :<C-u>call SpaceVim#lsp#go_to_def()<Cr>
|
||||||
|
|
||||||
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'],
|
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'],
|
||||||
\ 'call SpaceVim#lsp#show_doc()', 'show-document', 1)
|
\ 'call SpaceVim#lsp#show_doc()', 'show-document', 1)
|
||||||
|
@ -3647,11 +3647,11 @@ This layer also provides REPL support for julia, the key bindings are:
|
|||||||
To format julia code, you need to install `JuliaFormatter`, and the key
|
To format julia code, you need to install `JuliaFormatter`, and the key
|
||||||
binding is `SPC b f`
|
binding is `SPC b f`
|
||||||
|
|
||||||
If the lsp layer is enabled for python, the following key bindings can be
|
If the lsp layer is enabled for julia, the following key bindings can be used:
|
||||||
used:
|
|
||||||
>
|
>
|
||||||
key binding Description
|
key binding Description
|
||||||
g D jump to type definition
|
g D jump to type definition
|
||||||
|
g d jump to definition
|
||||||
SPC l e rename symbol
|
SPC l e rename symbol
|
||||||
SPC l x show references
|
SPC l x show references
|
||||||
SPC l h show line diagnostics
|
SPC l h show line diagnostics
|
||||||
|
Loading…
x
Reference in New Issue
Block a user