diff --git a/autoload/SpaceVim/layers/lang/clojure.vim b/autoload/SpaceVim/layers/lang/clojure.vim index cac8d11a4..90b8a19c9 100644 --- a/autoload/SpaceVim/layers/lang/clojure.vim +++ b/autoload/SpaceVim/layers/lang/clojure.vim @@ -51,7 +51,7 @@ " g D jump to type definition " SPC l e rename symbol " SPC l x show references -" SPC l s show line diagnostics +" SPC l h show line diagnostics " SPC l d show document " K show document " SPC l w l list workspace folder @@ -134,7 +134,7 @@ function! s:language_specified_mappings() abort \ 'call SpaceVim#lsp#references()', 'show-references', 1) call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'e'], \ 'call SpaceVim#lsp#rename()', 'rename-symbol', 1) - call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 's'], + call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'h'], \ 'call SpaceVim#lsp#show_line_diagnostics()', 'show-line-diagnostics', 1) let g:_spacevim_mappings_space.l.w = {'name' : '+Workspace'} call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'w', 'l'], diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 8fb01fcbb..814f2fa58 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -2609,7 +2609,7 @@ used: g D jump to type definition SPC l e rename symbol SPC l x show references - SPC l s show line diagnostics + SPC l h show line diagnostics SPC l d show document K show document SPC l w l list workspace folder diff --git a/docs/layers/lang/clojure.md b/docs/layers/lang/clojure.md index d826d6838..5dbd74d62 100644 --- a/docs/layers/lang/clojure.md +++ b/docs/layers/lang/clojure.md @@ -14,6 +14,7 @@ description: "This layer is for Clojure development, provides autocompletion, sy - [Key bindings](#key-bindings) - [Running current script](#running-current-script) - [Inferior REPL process](#inferior-repl-process) + - [LSP key Bindings](#lsp-key-bindings) @@ -68,3 +69,19 @@ Send code to inferior process commands: | `SPC l s l` | send line and keep code buffer focused | | `SPC l s s` | send selection text and keep code buffer focused | +### LSP key Bindings + +If the lsp layer is enabled for python, the following key bindings can +be used: + +| key binding | Description | +| ----------- | ----------------------- | +| `g D` | jump to type definition | +| `SPC l e` | rename symbol | +| `SPC l x` | show references | +| `SPC l s` | show line diagnostics | +| `SPC l d` | show document | +| `K` | show document | +| `SPC l w l` | list workspace folder | +| `SPC l w a` | add workspace folder | +| `SPC l w r` | remove workspace folder |