feat(linter): add more groups

This commit is contained in:
2024-08-12 22:29:18 +02:00
parent 76a73fc251
commit d59851504d
+5 -1
View File
@@ -11,9 +11,13 @@ M.__index = M
---@alias Group ---@alias Group
---| "lnum" ---| "lnum"
---| "end_lnum"
---| "col" ---| "col"
---| "end_col"
---| "severity" ---| "severity"
---| "message" ---| "message"
---| "source"
---| "code"
---@class LinterConfig ---@class LinterConfig
---@field cmd string[] ---@field cmd string[]
@@ -107,7 +111,7 @@ function M:run(bufnr)
utils.err(tostring(resp)) utils.err(tostring(resp))
return return
elseif resp then elseif resp then
resp.source = self.config.source resp.source = resp.source or self.config.source
table.insert(diagnostics, resp) table.insert(diagnostics, resp)
end end
end end