summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-31 08:56:12 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-31 08:56:12 -0700
commit76bedaf93bc2cc1bb4da155b65dff71a73a35d89 (patch)
treea20de97be91f6a39abb942318e3665a7ef7a7942 /emacs/custom
parentfix(git-extra): use cs.fcuny.xyz for my own repositories (diff)
downloademacs.d-76bedaf93bc2cc1bb4da155b65dff71a73a35d89.tar.gz
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.
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-prog.el8
1 files changed, 5 insertions, 3 deletions
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))