From 89a6637de80126943cfdd46e2d1f003b53bc4ce8 Mon Sep 17 00:00:00 2001 From: solrac97gr Date: Sat, 21 Jun 2025 11:56:52 +0200 Subject: [PATCH 1/3] add the configuration for newer versions --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index b9303ff..244f270 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,30 @@ A Zed extension for running [golangci-lint](https://golangci-lint.run/) on your ### Configuration +# For newer version of golangci-lint (v2) +```json +{ + "lsp": { + "golangci-lint": { + "initialization_options": { + "command": [ + "golangci-lint", + "run", + "--output.json.path", + "stdout", + "--show-stats=false" + ] + } + } + } + "languages": { + "Go": { + "language_servers": ["gopls", "golangci-lint"] + } + } +} +``` +# Or for older version of golangci-lint (v1) ```json { "lsp": { From b2603ffa850b5f9b3c9e6ec2f0aa624321410de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=ADa=20Rosales?= Date: Sun, 27 Jul 2025 01:02:48 +0200 Subject: [PATCH 2/3] accepting suggestion Co-authored-by: thinh-h2 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 244f270..f6cbc6f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ A Zed extension for running [golangci-lint](https://golangci-lint.run/) on your "run", "--output.json.path", "stdout", - "--show-stats=false" + "--show-stats=false", + "--output.text.path=" ] } } From 587492bb906b24c98dca2271546a0943e3f06e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=ADa=20Rosales?= Date: Thu, 7 Aug 2025 11:21:42 +0200 Subject: [PATCH 3/3] Update README.md Co-authored-by: Ryan Small --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f6cbc6f..22265e8 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ A Zed extension for running [golangci-lint](https://golangci-lint.run/) on your ] } } - } + }, "languages": { "Go": { "language_servers": ["gopls", "golangci-lint"]