From 8f4ad21ed85187095aa1f0fafb86b85ca245c0a7 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 1 Aug 2023 14:26:13 +0300 Subject: [PATCH] feat(nvim): kazhala/close-buffers.nvim + mappings --- config/astronvim/lua/user/mappings.lua | 18 ++++++++++++++++++ config/astronvim/lua/user/plugins/user.lua | 6 +----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/config/astronvim/lua/user/mappings.lua b/config/astronvim/lua/user/mappings.lua index e95a58f..60f88ff 100644 --- a/config/astronvim/lua/user/mappings.lua +++ b/config/astronvim/lua/user/mappings.lua @@ -26,6 +26,24 @@ return { ":Telescope projects", desc = "Update Projects listing" }, + -- close_buffers + ['bch'] = { + "lua require('close_buffers').delete({type = 'hidden'})", + desc = "Delete hidden buffers" + }, + -- comment-box + ["bb"] = { + "lua require('comment-box').lbox()", + desc = "Left aligned fixed size box with left aligned text" + }, + ["bc"] = { + "lua require('comment-box').ccbox()", + desc = "Centered adapted box with centered text" + }, + ["bl"] = { + "lua require('comment-box').cline()", + desc = "Centered line" + }, }, t = { -- setting a mapping to false will disable it diff --git a/config/astronvim/lua/user/plugins/user.lua b/config/astronvim/lua/user/plugins/user.lua index 179fcea..02c88e4 100644 --- a/config/astronvim/lua/user/plugins/user.lua +++ b/config/astronvim/lua/user/plugins/user.lua @@ -22,6 +22,7 @@ return { mode = "cursor", -- cursor, or topline }, }, + { "kazhala/close-buffers.nvim" }, { "folke/edgy.nvim", event = "VeryLazy", @@ -98,11 +99,6 @@ return { pinned = true, open = "Neotree position=top buffers", }, - { - ft = "Outline", - pinned = true, - open = "SymbolsOutlineOpen", - }, -- any other neo-tree windows "neo-tree", },