stylua and removal mason reliance

This commit is contained in:
2026-04-11 22:36:03 +02:00
parent b9f92d6ba4
commit b0cbc702cf
29 changed files with 480 additions and 443 deletions
+12 -12
View File
@@ -1,25 +1,25 @@
require("bufferline").setup({
require("bufferline").setup {
options = {
diagnostics = "coc",
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
end,
always_show_bufferline = true,
offsets = {
{filetype = "NvimTree", text = "Explorer", text_align = "center"},
{filetype = "snacks_layout_box"}
{ filetype = "NvimTree", text = "Explorer", text_align = "center" },
{ filetype = "snacks_layout_box" },
},
vim.api.nvim_create_autocmd({"BufAdd", "BufDelete"},
{
vim.api.nvim_create_autocmd({ "BufAdd", "BufDelete" }, {
callback = function()
vim.schedule(function() pcall(nvim_bufferline) end)
end
})
}
})
vim.schedule(function()
pcall(nvim_bufferline)
end)
end,
}),
},
}