astronvim/mappings.lua

21 lines
827 B
Lua
Raw Permalink Normal View History

2023-01-14 13:02:17 +01:00
return {
-- first key is the mode
n = {
-- second key is the lefthand side of the map
-- mappings seen under group name "Buffer"
["<leader>bb"] = { "<cmd>tabnew<cr>", desc = "New tab" },
["<leader>bc"] = { "<cmd>BufferLinePickClose<cr>", desc = "Pick to close" },
["<leader>bj"] = { "<cmd>BufferLinePick<cr>", desc = "Pick to jump" },
["<leader>bt"] = { "<cmd>BufferLineSortByTabs<cr>", desc = "Sort by tabs" },
-- quick save
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
2023-02-03 16:08:09 +01:00
["<leader>b"] = { name = "Buffer" },
["<leader>P"] = { "<cmd>Telescope projects<cr>", desc = "projects" },
["<leader>."] = { "<cmd>Ranger<cr>", desc = "ranger" },
2023-01-14 13:02:17 +01:00
},
t = {
-- setting a mapping to false will disable it
-- ["<esc>"] = false,
},
}