nvim-lint
nvim-lint copied to clipboard
jq cannot run: Linter command `cmd.exe` exited with code: 5
lint.linters.jq_custom = {
cmd = "jq",
stdin = true,
args = { "." },
stream = "stderr",
ignore_exitcode = false,
parser = require("lint.parser").from_pattern(
"^parse error: (.+) at line (%d+), column (%d+)$",
{ "message", "lnum", "col" },
nil,
nil,
nil
),
}
if I ignore exit code, it still does nothing at all.
I googled for cmd exit status 5
and it looks like a permission problem, but jq worked well with :!cat % | jq .