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