feat: Add keymappings for easier buffers navigation

This commit is contained in:
Xavier Logerais
2025-12-11 08:29:56 +00:00
parent 6202ee57a9
commit 84026b5a01

View File

@@ -71,6 +71,8 @@ return {
end,
desc = "Close buffer from tabline",
},
["<Leader>bp"] = { function() require("astrocore.buffer").nav(-vim.v.count1) end, desc = "Previous buffer" },
["<Leader>bn"] = { function() require("astrocore.buffer").nav(vim.v.count1) end, desc = "Next buffer" },
-- tables with just a `desc` key will be registered with which-key if it's installed
-- this is useful for naming menus