From 48c57041f9b7ceeff3e3d476f4ddf2cfc8a9f321 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 11 May 2022 18:51:47 +0800 Subject: [PATCH] feat(julia): add `g d` key binding close https://github.com/SpaceVim/SpaceVim/issues/4669 --- autoload/SpaceVim/layers/lang/julia.vim | 4 +++- doc/SpaceVim.txt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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