emacs: only use gopls in go files
Alan Pearce alan@alanpearce.eu
Wed, 15 May 2024 15:48:18 +0200
1 files changed, 0 insertions(+), 5 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -1062,11 +1062,6 @@ (s-starts-with-p "Connected!" formatstring))) (defun my/setup-eglot-eldoc () (push 'flymake-eldoc-function eldoc-documentation-functions)) (add-hook 'eglot-managed-mode-hook 'my/setup-eglot-eldoc) - (setf (alist-get '(go-mode go-dot-mod-mode go-dot-work-mode go-ts-mode go-mod-ts-mode) - eglot-server-programs - nil nil #'equal) - (eglot-alternatives '("golangci-lint-langserver" - "gopls" ))) (setq-default eglot-workspace-configuration '( :yaml (:keyOrdering nil) :nix (:autoArchive t)