From d96ff58797a112280f8a3599b599b4c6d66ef0af Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 20 Mar 2022 00:00:24 +0800 Subject: Improve eglot (emacs) --- .emacs.d/lisp/init-eglot.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-eglot.el b/.emacs.d/lisp/init-eglot.el index 4baa750..5409958 100644 --- a/.emacs.d/lisp/init-eglot.el +++ b/.emacs.d/lisp/init-eglot.el @@ -8,10 +8,14 @@ (evil-define-key 'normal 'eglot--managed-mode (kbd "gd") 'xref-find-definitions (kbd "gr") 'xref-find-references + (kbd "gt") 'eglot-find-typeDefinition (kbd "K") 'eldoc-doc-buffer (kbd "gi") 'eglot-find-implementation (kbd "C-t") 'xref-pop-marker-stack)) (setq eglot-autoreconnect t) +(with-eval-after-load 'eglot + (setq completion-category-defaults nil)) + (provide 'init-eglot) -- cgit v1.2.3