diff --git a/lua/hardline/parts/lsp.lua b/lua/hardline/parts/lsp.lua index 3bd5636..6b2ee34 100644 --- a/lua/hardline/parts/lsp.lua +++ b/lua/hardline/parts/lsp.lua @@ -7,7 +7,7 @@ local function get_diagnostic(prefix, severity) count = lsp.diagnostic.get_count(0, severity) else local severities = { - ['Warning'] = diagnostic.severity.WARNING, + ['Warning'] = diagnostic.severity.WARN, ['Error'] = diagnostic.severity.ERROR, } count = #diagnostic.get(0, {severity=severities[severity]})