From 618c4d373fdabf3bcf3ed86a7beab453f09390e1 Mon Sep 17 00:00:00 2001 From: Olivier Roques Date: Mon, 20 Dec 2021 18:27:34 +0100 Subject: [PATCH] Fix severity name --- lua/hardline/parts/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]})