all repos — nixfiles @ a1e4b1504fcbfb73a233f3b947e43cfa93c4854d

System and user configuration, managed by nix and home-manager

emacs: only use gopls in go files
Alan Pearce alan@alanpearce.eu
Wed, 15 May 2024 15:48:18 +0200
commit

a1e4b1504fcbfb73a233f3b947e43cfa93c4854d

parent

897916633e1ce006b20fc0af9f3b23fba27dbecb

1 files changed, 0 insertions(+), 5 deletions(-)

jump to
M user/emacs/init.eluser/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)