From 058dace6be4543c186a09b3f14c24037c113dbed Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Tue, 11 Oct 2022 10:19:50 -0700 Subject: [PATCH] add binds to re-order buffer tabs --- lua/keybinds.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lua/keybinds.lua b/lua/keybinds.lua index 86be1ee..9ef78d0 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -26,13 +26,15 @@ map("n", "'", "`", opts) map("n", "`", "'", opts) -- Close context menus -map('n', 'w', 'cclose', opts) +map('n', 'q', 'cclose', opts) -- Navigate buffers -map("n", "", "bnext", opts) -map("n", "", "bprevious", opts) -map("n", "c", "Bdelete", opts) -- don't close if unsaved -map("n", "q", "Bdelete!", opts) -- close it no matter what B) +map("n", "", "BufferLineCycleNext", opts) -- :bnext +map("n", "", "BufferLineCyclePrev", opts) -- :bprevious +map("n", "]b", "BufferLineMoveNext", opts) +map("n", "[b", "BufferLineMovePrev", opts) +map("n", "w", "Bdelete", opts) -- don't close if unsaved +map("n", "c", "Bdelete!", opts) -- close it no matter what B) -- Toggle Diagnostics map("n", "de", "lua vim.diagnostic.enable()", opts)