summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouie <louie@example.com>2022-07-18 17:50:03 -0700
committerlouie <louie@example.com>2022-07-18 17:50:03 -0700
commit0783268e30dd8e5b4648164e54baf72e4a6cb83b (patch)
treec187b71bc6f75932d06ea9702a722a68515e7d48
parentb02428d220d21f81263b796b56216662c7b8157f (diff)
Better buffer deletion
-rw-r--r--lua/user/keymaps.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua
index 8725c59..1b9a2c8 100644
--- a/lua/user/keymaps.lua
+++ b/lua/user/keymaps.lua
@@ -39,6 +39,9 @@ keymap("n", "<S-Right>", "gt", opts)
keymap("n", "<S-Down>", ":bnext<CR>", opts)
keymap("n", "<S-Up>", ":bprevious<CR>", opts)
+-- Close buffer without closing window
+keymap("n", "<leader>bd", ":b#<CR>:bd#<CR>", opts)
+
-- Open Lexplorer
--keymap("n", "<leader>e", ":Lex 30<cr>", opts)