summaryrefslogtreecommitdiffstats
path: root/README.org
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-03-03 21:55:01 +0100
committerMartin Polden <mpolden@mpolden.no>2022-03-03 21:55:01 +0100
commitf69236117adcf808d5994db368ad4f7eaf9f7b69 (patch)
tree73e520892143e3760f1ac7b3ffa75939fba06dd9 /README.org
parenta2c2911e3585a912ffa822104b93d7a18e7d4bf5 (diff)
readme: Document how to enable staticcheck in gopls
Diffstat (limited to 'README.org')
-rw-r--r--README.org11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.org b/README.org
index ae26e3f..8f184cf 100644
--- a/README.org
+++ b/README.org
@@ -50,6 +50,17 @@ Example:
(setq mpolden/inhibit-format-before-save '(foo-mode))
#+end_src
+*** gopls
+
+To enable =staticcheck= when using the =gopls= language server, create a
+=.dir-locals.el= file in project directory containing:
+
+#+begin_src elisp
+((go-mode
+ . ((eglot-workspace-configuration
+ . ((:gopls . ((staticcheck . t))))))))
+#+end_src
+
** Version compatibility
Lowest supported Emacs version is the one found in [[https://packages.debian.org/stable/emacs][Debian stable]]. No