diff --git a/autoload/SpaceVim/layers/lang/julia.vim b/autoload/SpaceVim/layers/lang/julia.vim index 454825fa1..fc778a979 100644 --- a/autoload/SpaceVim/layers/lang/julia.vim +++ b/autoload/SpaceVim/layers/lang/julia.vim @@ -36,11 +36,12 @@ " To format julia code, you need to install `JuliaFormatter`, and the key " 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: " > " key binding Description " g D jump to type definition +" g d jump to definition " SPC l e rename symbol " SPC l x show references " SPC l h show line diagnostics @@ -105,6 +106,7 @@ function! s:language_specified_mappings() abort \ || SpaceVim#layers#lsp#check_server('julials') nnoremap K :call SpaceVim#lsp#show_doc() nnoremap gD :call SpaceVim#lsp#go_to_typedef() + nnoremap gd :call SpaceVim#lsp#go_to_def() call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'], \ 'call SpaceVim#lsp#show_doc()', 'show-document', 1) diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 0dedca292..a81c8c3f1 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -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 binding is `SPC b f` -If the lsp layer is enabled for python, the following key bindings can be -used: +If the lsp layer is enabled for julia, the following key bindings can be used: > key binding Description g D jump to type definition + g d jump to definition SPC l e rename symbol SPC l x show references SPC l h show line diagnostics