From: Indelog Date: Fri, 12 Nov 2021 09:49:47 +0000 (+0100) Subject: Fix : more readable error labels X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=43d049cd59858ec8c1c6f753700f36c6e48f5062;p=vim-lsp.git Fix : more readable error labels --- diff --git a/autoload/lsp.vim b/autoload/lsp.vim index b12ea78..907cdd3 100644 --- a/autoload/lsp.vim +++ b/autoload/lsp.vim @@ -504,7 +504,7 @@ enddef # get the count of error in the current buffer def lsp#errorCount():dict - var res = {'E': 0, 'W': 0, 'I': 0, 'H': 0} + var res = {'Error': 0, 'Warn': 0, 'Info': 0, 'Hint': 0} var ftype = &filetype if ftype == '' return res @@ -523,13 +523,13 @@ def lsp#errorCount():dict for item in lspserver.diagsMap[bnr]->values() if item->has_key('severity') if item.severity == 1 - res.E = res.E + 1 + res.Error = res.Error + 1 elseif item.severity == 2 - res.W = res.W + 1 + res.Warn = res.Warn + 1 elseif item.severity == 3 - res.I = res.I + 1 + res.Info = res.Info + 1 elseif item.severity == 4 - res.H = res.H + 1 + res.Hint = res.Hint + 1 endif endif endfor