From 537107283ac7f00c93efcfba3b8df570aa8a2fc9 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Tue, 28 May 2024 12:48:24 +0100 Subject: [PATCH] helix: added init commands for golangci-lint-langserver --- roles/home/helix.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/home/helix.nix b/roles/home/helix.nix index 65787b8..6d8d2d5 100644 --- a/roles/home/helix.nix +++ b/roles/home/helix.nix @@ -71,6 +71,10 @@ in [[language]] name = "go" language-servers = ["gopls", "golangci-lint-langserver"] + + [language-server.golangci-lint-langserver] + command = "golangci-lint-langserver" + config = { initializationOptions = { command = ["golangci-lint","run","--enable-all","-D","godox","-D","godot","--out-format","json","--issues-exit-code=1"]}} ''; }; };