chore: lsp diagnostics setup
This commit is contained in:
@@ -88,6 +88,9 @@ local function from_coc()
|
||||
end
|
||||
|
||||
function M.update()
|
||||
if not M.enable then
|
||||
return
|
||||
end
|
||||
local buffer_severity
|
||||
if vim.g.coc_service_initialized == 1 then
|
||||
buffer_severity = from_coc()
|
||||
@@ -116,4 +119,8 @@ function M.update()
|
||||
end
|
||||
end
|
||||
|
||||
function M.setup(opts)
|
||||
M.enable = opts.lsp_diagnostics
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user