Skip to content

Commit eaa3698

Browse files
committed
docs(readme): update emacs instructions
1 parent a91997c commit eaa3698

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

README.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -86,22 +86,8 @@ lspconfig.golangci_lint_ls.setup {
8686

8787
### Configuration for [lsp-mode](https://github.com/emacs-lsp/lsp-mode) (Emacs)
8888

89-
```emacs-lisp
90-
(with-eval-after-load 'lsp-mode
91-
(lsp-register-custom-settings
92-
'(("golangci-lint.command"
93-
["golangci-lint" "run" "--enable-all" "--disable" "lll" "--out-format" "json" "--issues-exit-code=1"])))
94-
95-
(lsp-register-client
96-
(make-lsp-client :new-connection (lsp-stdio-connection
97-
'("golangci-lint-langserver"))
98-
:activation-fn (lsp-activate-on "go")
99-
:language-id "go"
100-
:priority 0
101-
:server-id 'golangci-lint
102-
:add-on? t
103-
:library-folders-fn #'lsp-go--library-default-directories
104-
:initialization-options (lambda ()
105-
(gethash "golangci-lint"
106-
(lsp-configuration-section "golangci-lint")))))
107-
```
89+
Support for golangci-lint-langserver is
90+
[built-in](https://github.com/emacs-lsp/lsp-mode/blob/master/clients/lsp-golangci-lint.el)
91+
to lsp-mode since late 2023. When the `golangci-lint-langserver` executable is
92+
found, it is automatically started for Go buffers as an add-on server along with
93+
the `gopls` language server.

0 commit comments

Comments
 (0)