chore(bufferline.lua): remove bufferline configuration and key mappings for tab

management to simplify and streamline the setup of the bufferline plugin
chore(bufferline.lua): remove bufferline plugin configuration and dependencies
to declutter the plugin setup and improve maintainability
This commit is contained in:
David Ibia
2024-02-26 14:36:29 +01:00
parent d7f4bb752f
commit dce8aaa3bc
2 changed files with 0 additions and 28 deletions

View File

@@ -1,20 +0,0 @@
require("bufferline").setup {
options = {
mode = "tabs",
separator_style = "slant",
}
}
local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap("n", "<leader>1", "<cmd>BufferLineGoToBuffer 1<CR>", opts)
vim.api.nvim_set_keymap("n", "<leader>2", "<cmd>BufferLineGoToBuffer 2<CR>", opts)
vim.api.nvim_set_keymap("n", "<leader>3", "<cmd>BufferLineGoToBuffer 3<CR>", opts)
vim.api.nvim_set_keymap("n", "<leader>4", "<cmd>BufferLineGoToBuffer 4<CR>", opts)
-- I want to be to close the current tab with a single keypress
vim.api.nvim_set_keymap("n", "<leader>tc", "<cmd>tabclose<CR>", opts)
-- I want to be able to create a new tab with a single keypress
vim.api.nvim_set_keymap("n", "<leader>tn", "<cmd>tabnew<CR>", opts)

View File

@@ -1,8 +0,0 @@
return {
"akinsho/bufferline.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
version = "*",
config = function()
require("absolute.after.bufferline")
end
}