-- Mapping data with "desc" stored directly by vim.keymap.set(). -- -- Please use this mappings table to set keyboard mapping since this is the -- lower level configuration and more robust one. (which-key will -- automatically pick-up stored data by this setting.) return { -- first key is the mode n = { -- second key is the lefthand side of the map -- mappings seen under group name "Buffer" ["bn"] = { "tabnew", desc = "New tab" }, ["bD"] = { function() require("astronvim.utils.status").heirline.buffer_picker( function(bufnr) require("astronvim.utils.buffer").close(bufnr) end ) end, desc = "Pick to close", }, -- tables with the `name` key will be registered with which-key -- if it's installed this is useful for naming menus ["b"] = { name = "Buffers" }, -- quick save (change description) [""] = { ":w!", desc = "Save File" }, ["P"] = { ":Telescope projects", desc = "Update Projects listing" }, -- close_buffers ['bch'] = { "lua require('close_buffers').delete({type = 'hidden'})", desc = "Delete hidden buffers" }, -- comment-box ["bb"] = { "lua require('comment-box').lbox()", desc = "Left aligned fixed size box with left aligned text" }, ["bc"] = { "lua require('comment-box').ccbox()", desc = "Centered adapted box with centered text" }, ["bl"] = { "lua require('comment-box').cline()", desc = "Centered line" }, }, t = { -- setting a mapping to false will disable it -- [""] = false, }, }