From 10fd76d6d062037599579a96e19e8876c5615206 Mon Sep 17 00:00:00 2001 From: ray-x Date: Wed, 7 Sep 2022 17:01:01 +1000 Subject: [PATCH] default severity --- lua/navigator/diagnostics.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/navigator/diagnostics.lua b/lua/navigator/diagnostics.lua index ba7f645..5d09682 100644 --- a/lua/navigator/diagnostics.lua +++ b/lua/navigator/diagnostics.lua @@ -236,6 +236,8 @@ local diag_hdlr = function(err, result, ctx, config) if v.severity > 2 then head = _NgConfigValues.icons.diagnostic_head_severity_3 end + else + v.severity = 2 end if v.relatedInformation and v.relatedInformation[1] then local info = v.relatedInformation[1]