diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-03-03 21:55:01 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-03-03 21:55:01 +0100 |
commit | f69236117adcf808d5994db368ad4f7eaf9f7b69 (patch) | |
tree | 73e520892143e3760f1ac7b3ffa75939fba06dd9 /README.org | |
parent | a2c2911e3585a912ffa822104b93d7a18e7d4bf5 (diff) |
readme: Document how to enable staticcheck in gopls
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |