From 76bedaf93bc2cc1bb4da155b65dff71a73a35d89 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 31 May 2022 08:56:12 -0700 Subject: fix(prog): add support for workspace module to gopls I've multiple go modules inside a git repository. Without support for workspaces, gopls is confused and does not work correctly. --- emacs/custom/my-prog.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'emacs/custom') diff --git a/emacs/custom/my-prog.el b/emacs/custom/my-prog.el index 2a0f29a..285befc 100644 --- a/emacs/custom/my-prog.el +++ b/emacs/custom/my-prog.el @@ -100,11 +100,13 @@ ;; List of settings for gopls: ;; https://github.com/golang/tools/blob/master/gopls/doc/settings.md +;; https://github.com/golang/tools/blob/master/gopls/doc/settings.md#experimentalworkspacemodule-bool (customize-set-variable 'eglot-workspace-configuration '((:gopls . - ((staticcheck . t) - (matcher . "CaseSensitive") - (usePlaceholders . t))))) + ((staticcheck . t) + (experimentalWorkspaceModule . t) + (matcher . "CaseSensitive") + (usePlaceholders . t))))) ;; ensure we load eglot for some specific modes (dolist (hook '(go-mode-hook nix-mode-hook)) -- cgit 1.4.1