change tabufline mapping

This commit is contained in:
xfy
2024-09-03 13:29:28 +08:00
parent 3d1de3af2b
commit 9b77e6052b

View File

@ -55,14 +55,14 @@ map("n", "<leader>tn",
end,
{ desc = "Toggle transparent" })
map("n", "<leader>tc", "<CMD> tabclose <CR>", { desc = "Close tab" })
--[[ map({ "n" }, "<S-l>", function()
map({ "n" }, "<S-l>", function()
require("nvchad.tabufline").next()
end, { desc = "Goto next buffer" })
map({ "n" }, "<S-h>", function()
require("nvchad.tabufline").prev()
end, { desc = "Goto prev buffer" }) ]]
map("n", "<S-l>", "<CMD> bn <CR>", { desc = "Goto next buffer" })
map("n", "<S-h>", "<CMD> bp <CR>", { desc = "Goto prev buffer" })
end, { desc = "Goto prev buffer" })
--[[ map("n", "<S-l>", "<CMD> bn <CR>", { desc = "Goto next buffer" }) ]]
--[[ map("n", "<S-h>", "<CMD> bp <CR>", { desc = "Goto prev buffer" }) ]]
map("n", "<leader>la", "<CMD> silent! %bd|e#|bd# <CR>", { desc = "Close all other buffers" })
map("n", "<leader>x", "<CMD> bp|bd# <CR>", { desc = "Close current buffer" })
--[[ map("t", "<leader>x", "<CMD> bp|bd! # <CR>", { desc = "Close current terminal buffer" }) ]]