stylua added rule

This commit is contained in:
2026-06-20 03:44:26 +02:00
parent 907b234eb7
commit 6fb33b02cd
13 changed files with 154 additions and 145 deletions
+9 -5
View File
@@ -1,10 +1,16 @@
require("bufferline").setup {
options = {
diagnostics = "coc",
diagnostics_indicator = function(count, level, diagnostics_dict, context)
diagnostics_indicator = function(
count,
level,
diagnostics_dict,
context
)
local s = " "
for e, n in pairs(diagnostics_dict) do
local sym = e == "error" and "" or (e == "warning" and "" or "")
local sym = e == "error" and ""
or (e == "warning" and "" or "")
s = s .. n .. sym
end
return s
@@ -16,9 +22,7 @@ require("bufferline").setup {
},
vim.api.nvim_create_autocmd({ "BufAdd", "BufDelete" }, {
callback = function()
vim.schedule(function()
pcall(nvim_bufferline)
end)
vim.schedule(function() pcall(nvim_bufferline) end)
end,
}),
},