feat(linter): add more groups
This commit is contained in:
+5
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user