Skip to content

Commit

Permalink
add golangci-lint-langserver (helix-editor#8656)
Browse files Browse the repository at this point in the history
* languages add golangci-lint-langserver

* update docs
  • Loading branch information
angaz authored and Schuyler Mortimer committed Jul 10, 2024
1 parent 5c46b50 commit f12db70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
| git-rebase || | | |
| gleam ||| | `gleam` |
| glsl |||| |
| go |||| `gopls` |
| go |||| `gopls`, `golangci-lint-langserver` |
| godot-resource || | | |
| gomod || | | `gopls` |
| gotmpl || | | `gopls` |
Expand Down
8 changes: 7 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ functionTypeParameters = true
parameterNames = 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]
command = "rust-analyzer"
Expand Down Expand Up @@ -495,7 +501,7 @@ file-types = ["go"]
roots = ["go.work", "go.mod"]
auto-format = true
comment-token = "//"
language-servers = [ "gopls" ]
language-servers = [ "gopls", "golangci-lint-lsp" ]
# TODO: gopls needs utf-8 offsets?
indent = { tab-width = 4, unit = "\t" }

Expand Down

0 comments on commit f12db70

Please sign in to comment.