some changes
This commit is contained in:
parent
872a98a430
commit
bf7bdf0060
6 changed files with 108 additions and 134 deletions
|
@ -1,10 +1,22 @@
|
|||
return {
|
||||
"akinsho/bufferline.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
version = "*",
|
||||
opts = {
|
||||
options = {
|
||||
mode = "tabs",
|
||||
},
|
||||
},
|
||||
"akinsho/bufferline.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
version = "*",
|
||||
opts = {
|
||||
options = {
|
||||
show_buffer_icons = true,
|
||||
diagnostics = "nvim_lsp",
|
||||
offsets = { { filetype = "neo-tree", text = "File Explorer", highlight = "Directory" } },
|
||||
buffers = {
|
||||
-- You can set buffer_mode to "list" or "tabbed" based on your preference.
|
||||
buffer_mode = "list",
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("bufferline").setup(opts)
|
||||
-- Remap the tab key for buffer navigation (you can adjust the keys as needed)
|
||||
vim.keymap.set("n", "<Tab>", "<cmd>BufferLineCycleNext<CR>")
|
||||
vim.keymap.set("n", "<S-Tab>", "<cmd>BufferLineCyclePrev<CR>")
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue