[nvim] fix: consistent names for diagnostics

This commit is contained in:
David JULIEN 2022-06-08 10:29:35 +02:00
parent 96b6b535a5
commit 1bd3ea5adc
2 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ local M = {} -- The module to export
M = {
-- misc
sign_error = "",
sign_warning = "",
sign_warn = "",
sign_hint = "",
sign_info = "",
}

View File

@ -102,10 +102,10 @@ end
local function get_lsp_diagnostics()
local result = {}
local levels = {
errors = "Error",
warnings = "Warn",
error = "Error",
warn = "Warn",
info = "Info",
hints = "Hint"
hint = "Hint"
}
for k, level in pairs(levels) do
@ -152,12 +152,12 @@ local left = table.concat {
{
process_diagnostics(
globals.sign_error .. " ",
diagnostics.errors,
diagnostics.error,
"%#DiagnosticVirtualTextError#"
),
process_diagnostics(
globals.sign_warning .. " ",
diagnostics.warnings,
globals.sign_warn .. " ",
diagnostics.warn,
"%#DiagnosticVirtualTextWarn#"
),
process_diagnostics(