|
|
|
@ -7,11 +7,23 @@ return {
|
|
|
|
|
-- first key is the mode
|
|
|
|
|
n = {
|
|
|
|
|
-- second key is the lefthand side of the map
|
|
|
|
|
|
|
|
|
|
-- navigate buffer tabs with `H` and `L`
|
|
|
|
|
-- L = {
|
|
|
|
|
-- function() require("astronvim.utils.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end,
|
|
|
|
|
-- desc = "Next buffer",
|
|
|
|
|
-- },
|
|
|
|
|
-- H = {
|
|
|
|
|
-- function() require("astronvim.utils.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end,
|
|
|
|
|
-- desc = "Previous buffer",
|
|
|
|
|
-- },
|
|
|
|
|
|
|
|
|
|
-- mappings seen under group name "Buffer"
|
|
|
|
|
["<leader>bn"] = { "<cmd>tabnew<cr>", desc = "New tab" },
|
|
|
|
|
["<leader>bD"] = {
|
|
|
|
|
function()
|
|
|
|
|
require("astronvim.utils.status").heirline.buffer_picker(function(bufnr) require("astronvim.utils.buffer").close(bufnr) end)
|
|
|
|
|
require("astronvim.utils.status").heirline.buffer_picker(
|
|
|
|
|
function(bufnr) require("astronvim.utils.buffer").close(bufnr) end
|
|
|
|
|
)
|
|
|
|
|
end,
|
|
|
|
|
desc = "Pick to close",
|
|
|
|
|
},
|
|
|
|
|