From fa358c984345798f83104973ed2d6927659e9288 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 31 Mar 2025 10:04:07 +0200 Subject: [PATCH] [Bufdelete] Replace with bufremove, because bufdelete is deprecated --- nvim/lua/plugins/nav/bufdelete.lua | 9 --------- nvim/lua/plugins/nav/bufremove.lua | 6 ++++++ 2 files changed, 6 insertions(+), 9 deletions(-) delete mode 100755 nvim/lua/plugins/nav/bufdelete.lua create mode 100755 nvim/lua/plugins/nav/bufremove.lua diff --git a/nvim/lua/plugins/nav/bufdelete.lua b/nvim/lua/plugins/nav/bufdelete.lua deleted file mode 100755 index 2e25db7..0000000 --- a/nvim/lua/plugins/nav/bufdelete.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - -- delete a buffer - 'famiu/bufdelete.nvim', - config = function() - local map = vim.api.nvim_set_keymap - map('n', '', 'Bdelete', { silent = true, desc = "close current buffer" }) - end -} - diff --git a/nvim/lua/plugins/nav/bufremove.lua b/nvim/lua/plugins/nav/bufremove.lua new file mode 100755 index 0000000..2cb4474 --- /dev/null +++ b/nvim/lua/plugins/nav/bufremove.lua @@ -0,0 +1,6 @@ +return { + "echasnovski/mini.bufremove", + config = function () + vim.keymap.set( 'n', '', ':bdelete', { silent = true, noremap = true, desc = 'Remove buffer' } ); + end, +}