summaryrefslogtreecommitdiffstats
path: root/lisp/init-eglot.el
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2020-02-23 10:49:42 +0100
committerMartin Polden <mpolden@mpolden.no>2020-02-23 10:49:42 +0100
commit734647632c9d55b57eb0b2e47b95985226ed2166 (patch)
tree734702440f58b2c362cccb31218554def2e6eae4 /lisp/init-eglot.el
parenta226587e0b6ac84eaa2f0fa3c0355f5f60e94df7 (diff)
Disable documentation on hover
Diffstat (limited to 'lisp/init-eglot.el')
-rw-r--r--lisp/init-eglot.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/init-eglot.el b/lisp/init-eglot.el
index c9e9b73..f852bcf 100644
--- a/lisp/init-eglot.el
+++ b/lisp/init-eglot.el
@@ -5,14 +5,18 @@
((go-mode . eglot-ensure)
;; format on save
(before-save . eglot-format))
+
:bind (:map eglot-mode-map
;; C-c r renames identifier
("C-c r" . eglot-rename)
;; C-c f formats buffer
("C-c f" . eglot-format))
+
:config
- ;; disble symbol highlighting
- (setq eglot-ignored-server-capabilites '(:documentHighlightProvider))
+ ;; disable symbol highlighting and documentation on hover
+ (setq eglot-ignored-server-capabilites '(:documentHighlightProvider
+ :hoverProvider))
+
;; disable imenu integration as it's currently unsupported with gopls
;; https://github.com/joaotavora/eglot/pull/303
(setq eglot-stay-out-of '("imenu")))