add a tab manager.
This commit is contained in:
parent
9a385b8c7a
commit
da8536145c
35
lua/plugins/buffer-tab.lua
Normal file
35
lua/plugins/buffer-tab.lua
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
-- buffer tabs
|
||||||
|
--
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"akinsho/bufferline.nvim",
|
||||||
|
version = "*",
|
||||||
|
dependencies = "nvim-tree/nvim-web-devicons",
|
||||||
|
opts = {
|
||||||
|
options = {
|
||||||
|
mode = "buffers",
|
||||||
|
separator_style = "slant",
|
||||||
|
diagnostics = "nvim_lsp",
|
||||||
|
sort_by = "extension",
|
||||||
|
offsets = {
|
||||||
|
{
|
||||||
|
filetype = "nerdtree",
|
||||||
|
text = "File Explorer",
|
||||||
|
highlight = "Directory",
|
||||||
|
separator = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
hover = {
|
||||||
|
enabled = true,
|
||||||
|
delay = 200,
|
||||||
|
reveal = { "close" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<Tab>", "<Cmd>BufferLineCycleNext<CR>", desc = "Next Buffer" },
|
||||||
|
{ "<S-Tab>", "<Cmd>BufferLineCyclePrev<CR>", desc = "Previous Buffer" },
|
||||||
|
{ "<leader>bd", "<Cmd>BufferLinePickClose<CR>", desc = "Close Buffer" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user