init.lua/lua/plugins/bufferline.lua

37 lines
744 B
Lua
Raw Normal View History

2024-02-10 22:51:14 +05:30
local Plugin = { "akinsho/bufferline.nvim" }
Plugin.version = "*"
Plugin.dependencies = "nvim-tree/nvim-web-devicons"
2024-06-10 00:59:34 +05:30
Plugin.event = "VeryLazy"
2024-02-10 22:51:14 +05:30
function Plugin.init()
vim.opt.termguicolors = true
end
Plugin.opts = {
options = {
2024-06-10 00:59:34 +05:30
themable = false,
diagnostics = "nvim_lsp",
mode = "buffers",
2024-02-10 22:51:14 +05:30
offsets = {
2024-06-10 00:59:34 +05:30
{ filetype = "neo-tree", text = "File Tree", separator = true },
2024-02-10 22:51:14 +05:30
},
2024-06-10 00:59:34 +05:30
separator_style = "slant",
show_buffer_close_icons = false,
show_close_icon = false,
2024-02-10 22:51:14 +05:30
},
2024-06-10 00:59:34 +05:30
2024-02-10 22:51:14 +05:30
-- :help bufferline-highlights
highlights = {
buffer_selected = {
2024-06-10 00:59:34 +05:30
italic = false,
2024-02-10 22:51:14 +05:30
},
indicator_selected = {
2024-06-10 00:59:34 +05:30
fg = { attribute = "fg", highlight = "Function" },
italic = false,
},
},
2024-02-10 22:51:14 +05:30
}
return Plugin