-- 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" ["bb"] = { "tabnew", desc = "New tab" }, ["bc"] = { "BufferLinePickClose", desc = "Pick to close" }, ["bj"] = { "BufferLinePick", desc = "Pick to jump" }, ["bt"] = { "BufferLineSortByTabs", desc = "Sort by tabs" }, -- Open file in browser ["r"] = { ":exe ':silent !firefox %'", desc = "Run Browser" }, -- View treesitter highlight groups ["k"] = { ":TSHighlightCapturesUnderCursor", desc = "View Highlight Group" }, -- Easy splits -- ["\\"] = { "split", desc = "Horizontal split" }, -- ["|"] = { "vsplit", desc = "Vertical split" }, -- Search highlight groups ["sg"] = { "Telescope highlights", desc = "Highlight groups" }, -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command }, t = { -- setting a mapping to false will disable it -- [""] = false, }, }