argh
This commit is contained in:
@ -44,33 +44,6 @@ return {
|
||||
local icon = symbols[level] or level
|
||||
return "" .. icon .. count
|
||||
end,
|
||||
custom_areas = {
|
||||
left = function()
|
||||
local result = {}
|
||||
local seve = vim.diagnostic.severity
|
||||
local error = #vim.diagnostic.get(0, { severity = seve.ERROR })
|
||||
local warning = #vim.diagnostic.get(0, { severity = seve.WARN })
|
||||
local info = #vim.diagnostic.get(0, { severity = seve.INFO })
|
||||
local hint = #vim.diagnostic.get(0, { severity = seve.HINT })
|
||||
|
||||
if error ~= 0 then
|
||||
table.insert(result, { text = " " .. error, fg = "#EC5241" })
|
||||
end
|
||||
|
||||
if warning ~= 0 then
|
||||
table.insert(result, { text = " " .. warning, fg = "#EFB839" })
|
||||
end
|
||||
|
||||
if hint ~= 0 then
|
||||
table.insert(result, { text = " " .. hint, fg = "#A3BA5E" })
|
||||
end
|
||||
|
||||
if info ~= 0 then
|
||||
table.insert(result, { text = " " .. info, fg = "#7EA9A7" })
|
||||
end
|
||||
return result
|
||||
end,
|
||||
},
|
||||
max_name_length = 30,
|
||||
truncate_name = false,
|
||||
show_close_icon = false,
|
||||
|
Reference in New Issue
Block a user