chore(bufferline.lua): update keybindings for closing and creating tabs to improve consistency and avoid conflicts

This commit is contained in:
David Ibia
2024-01-14 03:12:25 +01:00
parent 5c953ee2ac
commit 1305a943a1

View File

@@ -14,7 +14,7 @@ vim.api.nvim_set_keymap("n", "<leader>4", "<cmd>BufferLineGoToBuffer 4<CR>", opt
-- I want to be to close the current tab with a single keypress -- I want to be to close the current tab with a single keypress
vim.api.nvim_set_keymap("n", "<leader>w", "<cmd>tabclose<CR>", opts) 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 -- I want to be able to create a new tab with a single keypress
vim.api.nvim_set_keymap("n", "<leader>t", "<cmd>tabnew<CR>", opts) vim.api.nvim_set_keymap("n", "<leader>tn", "<cmd>tabnew<CR>", opts)