diff options
Diffstat (limited to 'lisp/init-eglot.el')
-rw-r--r-- | lisp/init-eglot.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/init-eglot.el b/lisp/init-eglot.el new file mode 100644 index 0000000..958064e --- /dev/null +++ b/lisp/init-eglot.el @@ -0,0 +1,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) |