mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
add golangci-lint-langserver (#8656)
* languages add golangci-lint-langserver * update docs
This commit is contained in:
parent
ef0c31db02
commit
44e03fa414
@ -54,7 +54,7 @@
|
|||||||
| git-rebase | ✓ | | | |
|
| git-rebase | ✓ | | | |
|
||||||
| gleam | ✓ | ✓ | | `gleam` |
|
| gleam | ✓ | ✓ | | `gleam` |
|
||||||
| glsl | ✓ | ✓ | ✓ | |
|
| glsl | ✓ | ✓ | ✓ | |
|
||||||
| go | ✓ | ✓ | ✓ | `gopls` |
|
| go | ✓ | ✓ | ✓ | `gopls`, `golangci-lint-langserver` |
|
||||||
| godot-resource | ✓ | | | |
|
| godot-resource | ✓ | | | |
|
||||||
| gomod | ✓ | | | `gopls` |
|
| gomod | ✓ | | | `gopls` |
|
||||||
| gotmpl | ✓ | | | `gopls` |
|
| gotmpl | ✓ | | | `gopls` |
|
||||||
|
@ -117,6 +117,12 @@ functionTypeParameters = true
|
|||||||
parameterNames = true
|
parameterNames = true
|
||||||
rangeVariableTypes = true
|
rangeVariableTypes = true
|
||||||
|
|
||||||
|
[language-server.golangci-lint-lsp]
|
||||||
|
command = "golangci-lint-langserver"
|
||||||
|
|
||||||
|
[language-server.golangci-lint-lsp.config]
|
||||||
|
command = ["golangci-lint", "run", "--out-format", "json", "--issues-exit-code=1"]
|
||||||
|
|
||||||
|
|
||||||
[language-server.rust-analyzer]
|
[language-server.rust-analyzer]
|
||||||
command = "rust-analyzer"
|
command = "rust-analyzer"
|
||||||
@ -495,7 +501,7 @@ file-types = ["go"]
|
|||||||
roots = ["go.work", "go.mod"]
|
roots = ["go.work", "go.mod"]
|
||||||
auto-format = true
|
auto-format = true
|
||||||
comment-token = "//"
|
comment-token = "//"
|
||||||
language-servers = [ "gopls" ]
|
language-servers = [ "gopls", "golangci-lint-lsp" ]
|
||||||
# TODO: gopls needs utf-8 offsets?
|
# TODO: gopls needs utf-8 offsets?
|
||||||
indent = { tab-width = 4, unit = "\t" }
|
indent = { tab-width = 4, unit = "\t" }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user