From f97d2e357910388812af4eabc8235d6cdfe18f45 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 2 Jul 2024 00:14:32 -0500 Subject: [PATCH] feat(nvim): make `Bdelete` force remove terms --- .../.config/nvim/lua/plugins/configs/bufdelete.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/bufdelete.lua b/users/price/dots/.config/nvim/lua/plugins/configs/bufdelete.lua index 56474766..318f18c1 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/bufdelete.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/bufdelete.lua @@ -11,7 +11,15 @@ return { "famiu/bufdelete.nvim", cmd = "Bdelete", keys = { - { "", "Bdelete", desc = "Close Buffer" }, + { "", "Bdelete", desc = "Close Buffer", mode = { "", "!", "v" } }, + { + "", + function() + require("bufdelete").bufdelete(0, true) + end, + desc = "Close Buffer", + mode = { "t" }, + }, }, }, }