Add more consult keybindings

This commit is contained in:
Jeremy Dormitzer 2024-04-03 08:11:10 -06:00
parent 0124fa4071
commit ba6c7cb66f
2 changed files with 8 additions and 7 deletions

View File

@ -160,10 +160,10 @@ targets."
([remap projectile-grep] #'consult-grep)
("C-c p" #'consult-yank-from-kill-ring))
(use-package consult-flycheck
:after flycheck
(use-package consult-eglot
:after (consult eglot)
:general
(flycheck-command-map "!" #'consult-flycheck))
(eglot-prefix-map "s" #'consult-eglot-symbols))
(use-package embark-consult
:general

View File

@ -53,7 +53,8 @@
(general-def flymake-map
"n" #'flymake-goto-next-error
"p" #'flymake-goto-prev-error
"l" #'flymake-show-diagnostics-buffer
"b" #'flymake-show-diagnostics-buffer
"l" #'consult-flymake
"a" #'flymake-show-project-diagnostics)
(leader-def-key "e" flymake-map)
:hook (prog-mode . flymake-mode))
@ -201,9 +202,9 @@
"Prefix keymap for eglot commands.")
(general-def eglot-prefix-map
"a" #'eglot-code-actions
"r" #'eglot-reconnect
"s" #'eglot-shutdown
"R" #'eglot-rename
"R" #'eglot-reconnect
"S" #'eglot-shutdown
"r" #'eglot-rename
"f" #'eglot-format-buffer
"i" #'eglot-code-action-organize-imports
"h" #'eldoc