diff --git a/README.md b/README.md index b9303ff..22265e8 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,31 @@ 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", + "--output.text.path=" + ] + } + } + }, + "languages": { + "Go": { + "language_servers": ["gopls", "golangci-lint"] + } + } +} +``` +# Or for older version of golangci-lint (v1) ```json { "lsp": {