-- 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" }, [""] = { ":bnext", desc = "Next buffer tab" }, -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command -- Open file [""] = { ":Telescope find_files search_dirs=~/", desc = "Open file" }, [""] = { ":Telescope find_files search_dirs=~/ hidden=true", desc = "Open file inc. hidden files" }, -- Make ["m"] = { name = "Make (Compile)" }, ["mm"] = { ":make", desc = "Make" }, ["mn"] = { ":make clean", desc = "Make clean" }, ["md"] = { ":make db", desc = "Make json database" }, ["mr"] = { ":make run", desc = "Make run" }, ["mu"] = { ":make upload", desc = "Make upload" }, -- Disable bindings ["n"] = false, }, t = { -- setting a mapping to false will disable it -- [""] = false, }, }