Skip to content

Commit 053afe0

Browse files
authored
Merge branch 'master' into update-emacs-instructions
2 parents eaa3698 + d24c129 commit 053afe0

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,20 @@ Support for golangci-lint-langserver is
9191
to lsp-mode since late 2023. When the `golangci-lint-langserver` executable is
9292
found, it is automatically started for Go buffers as an add-on server along with
9393
the `gopls` language server.
94+
95+
### Configuration for [helix](https://helix-editor.com/)
96+
97+
You can use `.golangci.yaml` in the project root directory to enable other [linters](https://golangci-lint.run/usage/linters/)
98+
99+
```toml
100+
[[language]]
101+
name = "go"
102+
auto-format = true
103+
language-servers = [ "gopls", "golangci-lint-lsp" ]
104+
105+
[language-server.golangci-lint-lsp]
106+
command = "golangci-lint-langserver"
107+
108+
[language-server.golangci-lint-lsp.config]
109+
command = ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"]
110+
```

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/nametake/golangci-lint-langserver
22

3-
go 1.13
3+
go 1.23.4
44

55
require github.com/sourcegraph/jsonrpc2 v0.0.0-20191222043438-96c4efab7ee2

0 commit comments

Comments
 (0)