fix: address diagnostics
This commit is contained in:
+3
-4
@@ -425,14 +425,13 @@ function Linter.add(bufnr, config)
|
||||
config.debounce = config.debounce or 100
|
||||
config.events = config.events or { "TextChanged", "TextChangedI" }
|
||||
|
||||
local linter = {
|
||||
---@type ow.lsp.Linter
|
||||
local linter = setmetatable({
|
||||
namespace = vim.api.nvim_create_namespace("lsp.linter"),
|
||||
augroup = vim.api.nvim_create_augroup("lsp.linter", { clear = false }),
|
||||
bufnr = bufnr,
|
||||
config = config,
|
||||
}
|
||||
|
||||
linter = setmetatable(linter, Linter)
|
||||
}, Linter)
|
||||
|
||||
local success = linter:run()
|
||||
if not success then
|
||||
|
||||
Reference in New Issue
Block a user