From 6e8f9931e03317b06debe17879e6f6aed9448231 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 22 Oct 2024 14:50:59 +0200 Subject: [PATCH] bugfix: remove old bdelete keymap to be replaced by vim-bbye --- lua/keymaps.lua | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 8bd1762..1e75fd9 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -42,15 +42,6 @@ vim.keymap.set('n', 'cdh', 'cd ' .. vim.env.HOME .. '', { desc -- Automatically navigate to config directory vim.keymap.set('n', 'cdn', 'cd ' .. vim.fn.stdpath 'config' .. '', { desc = '[C]hange [D]irectory to [N]eovim' }) --- Delete current buffer without closing window -vim.keymap.set('n', 'bd', function() - -- Get current buffer - local buf = vim.api.nvim_get_current_buf() - -- Switch to different buffer - vim.cmd 'silent! :exe "norm \\"' - -- Delete saved buffer - vim.api.nvim_buf_delete(buf, {}) -end, { desc = '[B]uffer [D]elete' }) -- Switch to between buffers vim.keymap.set('n', 'bp', 'bp', { desc = '[B]uffer [P]revious' }) vim.keymap.set('n', 'bn', 'bn', { desc = '[B]uffer [N]ext' })