blob: 958064e1ed8e8bdadffdd74a13dc1b07ee96fc49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
(use-package eglot
:hook
;; enable eglot in go-mode
(go-mode . eglot-ensure)
:bind (:map eglot-mode-map
;; C-c r renames identifier
("C-c r" . eglot-rename)
;; C-c p formats buffer
("C-c p" . eglot-format))
:config
;; disable imenu integration as it's currently unsupported
;; https://github.com/joaotavora/eglot/pull/303
(setq eglot-stay-out-of '("imenu")))
(provide 'init-eglot)
|