From 6deba070cbc6ad48354da45b9ae605270a6075ae Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Tue, 30 Sep 2025 19:23:42 -0500 Subject: [PATCH] Add golangci-lint-langserver for go --- helix/languages.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/helix/languages.toml b/helix/languages.toml index 689b613..2f62eca 100644 --- a/helix/languages.toml +++ b/helix/languages.toml @@ -10,6 +10,17 @@ file-types = ["java", "jav", "pde", "painless"] [language-server.rust-analyzer.config.check] command = "clippy" +[[language]] +name = "go" +auto-format = true +language-servers = [ "gopls", "golangci-lint-lsp" ] + +[language-server.golangci-lint-lsp] +command = "golangci-lint-langserver" + +[language-server.golangci-lint-lsp.config] +command = ["golangci-lint", "run", "--output.json.path", "stdout", "--show-stats=false", "--issues-exit-code=1"] + # It is recommended to place the necessary configurations below inside a project's # .helix/languages.toml directory #