add keybinds to jump between buffers

This commit is contained in:
2026-07-05 01:15:25 +02:00
parent a83481d10d
commit d92312b83c
+3
View File
@@ -97,6 +97,9 @@ map("n", "<leader>bd", smart_buffer_delete, { desc = "Close Current Buffer" })
map("n", "<leader>bw", smart_buffer_wipeout, { desc = "Wipeout Current Buffer" }) map("n", "<leader>bw", smart_buffer_wipeout, { desc = "Wipeout Current Buffer" })
map("n", "<leader>bD", delete_other_buffers, { desc = "Close All Other Buffers" }) map("n", "<leader>bD", delete_other_buffers, { desc = "Close All Other Buffers" })
map("n", "<leader>bW", wipeout_other_buffers, { desc = "Wipeout All Other Buffers" }) map("n", "<leader>bW", wipeout_other_buffers, { desc = "Wipeout All Other Buffers" })
for i = 1, 10 do
map("n", "<Leader>b" .. (i%10), "<Cmd>LualineBuffersJump! " .. i .. "<Cr>", { desc = "Jump to Buffer " .. i })
end
-- Trouble Keybinds -- Trouble Keybinds
-- open diagnostics window -- open diagnostics window