mirror of
https://git.aramjonghu.dev/AramJonghu/nvim.git
synced 2026-09-02 07:53:30 +02:00
stylua added rule
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user