nix
This commit is contained in:
parent
46afdaeecf
commit
be782e9048
1 changed files with 672 additions and 673 deletions
|
@ -497,7 +497,7 @@ return {
|
|||
'nvim-treesitter/nvim-treesitter',
|
||||
'neovim/nvim-lspconfig',
|
||||
},
|
||||
opts = function()
|
||||
config = function()
|
||||
-- fancy display function for folds (stolen from nvim-ufo readme)
|
||||
local handler = function(virtText, lnum, endLnum, width, truncate)
|
||||
local newVirtText = {}
|
||||
|
@ -545,8 +545,7 @@ return {
|
|||
local label = {}
|
||||
|
||||
for severity, icon in pairs(icons) do
|
||||
local n = #vim.diagnostic.get(props.buf,
|
||||
{ severity = vim.diagnostic.severity[string.upper(severity)] })
|
||||
local n = #vim.diagnostic.get(props.buf, { severity = vim.diagnostic.severity[string.upper(severity)] })
|
||||
if n > 0 then
|
||||
table.insert(label, { icon .. ' ' .. n .. ' ', group = 'DiagnosticSign' .. severity })
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue