We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
golangci-lint
before_init
1 parent 8a9378a commit 372c848Copy full SHA for 372c848
lsp/golangci_lint_ls.lua
@@ -47,6 +47,11 @@ return {
47
before_init = function(_, config)
48
-- Add support for golangci-lint V1 (in V2 `--out-format=json` was replaced by
49
-- `--output.json.path=stdout`).
50
+
51
+ if vim.fn.executable('golangci-lint') ~= 1 then
52
+ return
53
+ end
54
55
local v1, v2 = false, false
56
-- PERF: `golangci-lint version` is very slow (about 0.1 sec) so let's find
57
-- version using `go version -m $(which golangci-lint) | grep '^\smod'`.
0 commit comments