diff options
author | Louie S <louie@example.com> | 2024-03-09 16:20:11 -0500 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-03-09 16:20:11 -0500 |
commit | 42c5c325b809fd3fc819a19cd79780135884aac5 (patch) | |
tree | 11ff195a4dde310292e21a01ec1036e7eb48af03 | |
parent | a3cf83dfb6776f25937dfdf35cc1a76cc2ce9db1 (diff) |
Add new keymap for closing all buffers
-rw-r--r-- | lua/user/keymaps.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index e84cb3a..12f8ddb 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -88,6 +88,7 @@ keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts) -- Buffer Options keymap("n", "<leader>bd", ":b#<CR>:bd#<CR>", opts) --Close buffer without closing window ('b'uffer 'd'elete) +keymap("n", "<leader>bD", ":%bd|e#|bd#<CR>", opts) --Close all buffers except the current buffer keymap("n", "<leader>bl", ":JABSOpen<CR>", opts) --Open buffer switcher ('b'uffer 'l'ist) -- Toggle GUI colors - see colorscheme.lua |