tools/lsp: lazy load <leader> c l keybind

Fixes a issue where folks would try to rebind <leader> c, only to get a
non-prefix key error about <leader> c l.
This commit is contained in:
Henrik Lissner
2020-08-27 17:44:58 -04:00
parent 362f101227
commit 841eacc77d
4 changed files with 51 additions and 39 deletions

View File

@ -47,8 +47,7 @@
:desc "LSP Code actions" "a" #'lsp-execute-code-action
:desc "LSP Organize imports" "o" #'lsp-organize-imports
:desc "LSP Rename" "r" #'lsp-rename
(:after lsp-mode
:desc "LSP" "l" lsp-command-map)
:desc "LSP" "l" #'+default/lsp-command-map
(:when (featurep! :completion ivy)
:desc "Jump to symbol in current workspace" "j" #'lsp-ivy-workspace-symbol
:desc "Jump to symbol in any workspace" "J" #'lsp-ivy-global-workspace-symbol)