From ba6c7cb66fec70b86e0b627cfc46f70b091b1235 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 3 Apr 2024 08:11:10 -0600 Subject: [PATCH] Add more consult keybindings --- emacs/.emacs.d/config/init-completion.el | 6 +++--- emacs/.emacs.d/config/init-ide.el | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/emacs/.emacs.d/config/init-completion.el b/emacs/.emacs.d/config/init-completion.el index 77d1eb7..e043eb9 100644 --- a/emacs/.emacs.d/config/init-completion.el +++ b/emacs/.emacs.d/config/init-completion.el @@ -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 diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index ae828af..2caf524 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -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