Skip to content

Commit d24c129

Browse files
authored
Merge pull request #37 from BacchusJackson/master
Add helix configuration example
2 parents 54146d5 + 5913c5a commit d24c129

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,20 @@ lspconfig.golangci_lint_ls.setup {
105105
(gethash "golangci-lint"
106106
(lsp-configuration-section "golangci-lint")))))
107107
```
108+
109+
### Configuration for [helix](https://helix-editor.com/)
110+
111+
You can use `.golangci.yaml` in the project root directory to enable other [linters](https://golangci-lint.run/usage/linters/)
112+
113+
```toml
114+
[[language]]
115+
name = "go"
116+
auto-format = true
117+
language-servers = [ "gopls", "golangci-lint-lsp" ]
118+
119+
[language-server.golangci-lint-lsp]
120+
command = "golangci-lint-langserver"
121+
122+
[language-server.golangci-lint-lsp.config]
123+
command = ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"]
124+
```

0 commit comments

Comments
 (0)