feat(lsp,vertico): add consult-eglot

- Load when :tools lsp +eglot and :completion vertico are on
- Bind consult-eglot-symbols to <leader> c j
This commit is contained in:
Itai Y. Efrat
2021-08-22 22:28:42 +03:00
parent 3991d2ce77
commit d2d940fdf1
4 changed files with 17 additions and 3 deletions

View File

@@ -48,3 +48,10 @@ server getting expensively restarted when reverting buffers."
(+lsp-optimization-mode -1))))
server)))
(funcall fn server))))
(use-package! consult-eglot
:defer t
:when (featurep! :completion vertico)
:init
(map! :map eglot-mode-map [remap xref-find-apropos] #'consult-eglot-symbols))