on master help sign in
add golangci-lint-langserver (#8656)

* languages add golangci-lint-langserver * update docs

commit44e03fa41446f46c7be60a62acf6aa4131a62a4a authorAngus Dippenaar <angusdippenaar@gmail.com> dateSun 29 Oct 2023, 17:53 (3 years ago) parentef0c31d
2 files changed+8−2
book/src/generated/lang-support.md+1−1 languages.toml+7−1
book/src/generated/lang-support.md+1−1
@@ -54,7 +54,7 @@
5454| git-rebase | ✓ | | | |
5555| gleam | ✓ | ✓ | | `gleam` |
5656| glsl | ✓ | ✓ | ✓ | |
57−| go | ✓ | ✓ | ✓ | `gopls` |
57+| go | ✓ | ✓ | ✓ | `gopls`, `golangci-lint-langserver` |
5858| godot-resource | ✓ | | | |
5959| gomod | ✓ | | | `gopls` |
6060| gotmpl | ✓ | | | `gopls` |
languages.toml+7−1
@@ -117,6 +117,12 @@ functionTypeParameters = true
117117parameterNames = true
118118rangeVariableTypes = true
119119
120+[language-server.golangci-lint-lsp]
121+command = "golangci-lint-langserver"
122+
123+[language-server.golangci-lint-lsp.config]
124+command = ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"]
125+
120126
121127[language-server.rust-analyzer]
122128command = "rust-analyzer"
@@ -495,7 +501,7 @@ file-types = ["go"]
495501roots = ["go.work", "go.mod"]
496502auto-format = true
497503comment-token = "//"
498−language-servers = [ "gopls" ]
504+language-servers = [ "gopls", "golangci-lint-lsp" ]
499505# TODO: gopls needs utf-8 offsets?
500506indent = { tab-width = 4, unit = "\t" }
501507