forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbufferline.lua
More file actions
19 lines (19 loc) · 759 Bytes
/
bufferline.lua
File metadata and controls
19 lines (19 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
return {
"akinsho/bufferline.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("bufferline").setup({
options = {
separator_style = "slant", -- Modern separator style
diagnostics = "nvim_lsp", -- Show LSP diagnostics in tabs
show_buffer_icons = true, -- File type icons in tabs
show_buffer_close_icons = false, -- Disable close icons
offsets = {
{ filetype = "NvimTree", text = "File Explorer", highlight = "Directory", text_align = "left" },
},
},
})
vim.keymap.set("n", "<Tab>", ":BufferLineCycleNext<CR>", { desc = "Next buffer" })
vim.keymap.set("n", "<S-Tab>", ":BufferLineCyclePrev<CR>", { desc = "Previous buffer" })
end,
}