Skip to content

Commit e8a15cc

Browse files
authored
Merge pull request #44 from jimeh/update-emacs-instructions
docs(readme): update emacs instructions
2 parents d24c129 + 053afe0 commit e8a15cc

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

README.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,11 @@ 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.
10894

10995
### Configuration for [helix](https://helix-editor.com/)
11096

@@ -121,4 +107,4 @@ command = "golangci-lint-langserver"
121107

122108
[language-server.golangci-lint-lsp.config]
123109
command = ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"]
124-
```
110+
```

0 commit comments

Comments
 (0)