aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-20 00:00:24 +0800
committerGuangxiong Lin <[email protected]>2022-03-20 00:00:24 +0800
commitd96ff58797a112280f8a3599b599b4c6d66ef0af (patch)
treefea9092ca0b7e6c089f7537a1dd26f5f82ec2d85 /.emacs.d/lisp
parent63b442f31c66dd8e2e3a1e6d2326fa89b878e093 (diff)
downloaddotfiles-d96ff58797a112280f8a3599b599b4c6d66ef0af.tar.gz
dotfiles-d96ff58797a112280f8a3599b599b4c6d66ef0af.tar.bz2
dotfiles-d96ff58797a112280f8a3599b599b4c6d66ef0af.zip
Improve eglot (emacs)
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-eglot.el4
1 files changed, 4 insertions, 0 deletions
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)