aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-eglot.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-08-13 14:21:01 +0800
committerGuangxiong Lin <[email protected]>2022-08-13 14:21:01 +0800
commite90a5f28f3afa7a51a97b18175a6b62365f55cf2 (patch)
tree811c5df181b35d9756b0822c22151340bf9aa540 /.emacs.d/lisp/init-eglot.el
parentc2c53aec3c3369a314008146b654fff7743ada5b (diff)
downloaddotfiles-e90a5f28f3afa7a51a97b18175a6b62365f55cf2.tar.gz
dotfiles-e90a5f28f3afa7a51a97b18175a6b62365f55cf2.tar.bz2
dotfiles-e90a5f28f3afa7a51a97b18175a6b62365f55cf2.zip
Update emacs config
Diffstat (limited to '.emacs.d/lisp/init-eglot.el')
-rw-r--r--.emacs.d/lisp/init-eglot.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/.emacs.d/lisp/init-eglot.el b/.emacs.d/lisp/init-eglot.el
index 8a04c84..d94d6d0 100644
--- a/.emacs.d/lisp/init-eglot.el
+++ b/.emacs.d/lisp/init-eglot.el
@@ -9,12 +9,14 @@
(with-eval-after-load 'evil
(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))
+ (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
+
+ (kbd "<leader>rn") #'eglot-rename))
(setq eglot-autoreconnect t)