2023-11-30 15:59:49 +00:00
|
|
|
require("bufferline").setup({
|
|
|
|
options = {
|
|
|
|
diagnostics = "nvim_lsp",
|
|
|
|
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
|
|
|
local icon = level:match("error") and " " or " "
|
|
|
|
return " " .. icon .. count
|
|
|
|
end,
|
|
|
|
separator_style = "slant",
|
|
|
|
hover = { enabled = true, reveal = { "close" } },
|
|
|
|
},
|
|
|
|
})
|
2023-11-08 10:02:28 +00:00
|
|
|
|
2023-11-30 15:59:49 +00:00
|
|
|
vim.keymap.set("n", "<leader>ft", ":BufferLinePick<CR>", {})
|