Skip to content

Commit

Permalink
chore(mappings): improve example mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 31, 2023
1 parent 59b1209 commit 76d2c4c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit 76d2c4c

Please sign in to comment.