commit 9bf5203393af4247c31e61c106a60d9202b56a96 parent cc135cb062f82c5fb5b8991e79f86c13f4b941d8 Author: andsy10 <andsy1016@gmail.com> Date: Thu, 15 Oct 2026 05:24:05 +0800 Add consult-eglot integration Diffstat:
| M | lisp/init-kbd.el | | | 3 | ++- |
| M | lisp/init-prog.el | | | 12 | ++++++++++++ |
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/lisp/init-kbd.el b/lisp/init-kbd.el @@ -357,7 +357,8 @@ "f" #'consult-find "g" #'consult-grep "G" #'consult-git-grep - "e" #'consult-flycheck + "!" #'consult-flycheck + "e" #'consult-eglot-symbols "l" #'consult-locate "h" #'my-consult-fd-home "m" #'consult-man diff --git a/lisp/init-prog.el b/lisp/init-prog.el @@ -85,6 +85,18 @@ :config (setq eglot-send-changes-idle-time 0.25)) +;; consult-eglot +(my-use-package consult-eglot + :config + (defun my-consult-eglot-hack (fun) + (let ((consult-async-split-styles-alist + '((none :function consult--split-none) + (comma :separator ?, :function consult--split-separator) + (semicolon :separator ?\; :function consult--split-separator) + (perl :initial nil :function consult--split-perl)))) + (call-interactively fun))) + (advice-add #'consult-eglot-symbols :around #'my-consult-eglot-hack)) + ;; syntax checking (my-use-package flycheck :hook