From 89b4076fdca2f1d77b19720968f5d13806a52b7f Mon Sep 17 00:00:00 2001 From: Christian Mayer Date: Sat, 11 Mar 2023 12:07:44 +0100 Subject: [PATCH] update mappings to be compatible with astrovim 3 --- mappings.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mappings.lua b/mappings.lua index 755c50b..d87f7de 100644 --- a/mappings.lua +++ b/mappings.lua @@ -8,10 +8,13 @@ return { 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" }, + ["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" },