leap and bufferline

This commit is contained in:
Christian Nieves
2023-08-23 07:46:28 +00:00
parent fb1185cc2d
commit 87ac7d3773
8 changed files with 135 additions and 122 deletions

View File

@ -0,0 +1,36 @@
return {
-- {
-- "tiagovla/scope.nvim",
-- config = function()
-- -- vim.opt.sessionoptions = { -- required
-- -- "buffers",
-- -- "tabpages",
-- -- "globals",
-- -- }
-- require("scope").setup({})
-- end,
-- },
{
"akinsho/bufferline.nvim",
version = "*",
dependencies = "nvim-tree/nvim-web-devicons",
config = function()
vim.opt.termguicolors = true
require("bufferline").setup({
options = {
mode = "tabs",
diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level, diagnostics_dict, context)
local symbols = { error = "", warning = "", info = "", hint = "" }
local icon = symbols[level] or level
return "" .. icon .. count
end,
max_name_length = 30,
truncate_name = false,
show_close_icon = false,
show_buffer_close_icons = false,
},
})
end,
},
}