From 1eba9a9c24c567d645043f2eff7945b31e629763 Mon Sep 17 00:00:00 2001 From: wires Date: Wed, 12 Mar 2025 13:33:17 -0400 Subject: [PATCH] delete buffer no longer changes splits --- lua/mappings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/mappings.lua b/lua/mappings.lua index baabda7..b977627 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -11,7 +11,7 @@ map('n', 'cn', ':cnextzz', { desc = 'Next Item' }) -- buffer navigation map('n', 'kp', ':bprev', { desc = 'Prev buffer' }) map('n', 'kn', ':bnext', { desc = 'Next buffer' }) -map('n', 'kd', ':bdelete', { desc = 'Delete buffer' }) +map('n', 'kd', ':bp|bd #', { desc = 'Delete buffer' }) map('n', 'kc', ':new', { desc = 'New buffer' }) map('n', 'ko', '%bd|e#', { desc = 'Close all buffers but the current one' }) -- https://stackoverflow.com/a/42071865/516188