add binds to re-order buffer tabs

This commit is contained in:
Michael Peters 2022-10-11 10:19:50 -07:00
parent f39afab6c8
commit 058dace6be

View File

@ -26,13 +26,15 @@ map("n", "'", "`", opts)
map("n", "`", "'", opts)
-- Close context menus
map('n', '<leader>w', '<cmd>cclose<CR>', opts)
map('n', '<leader>q', '<cmd>cclose<CR>', opts)
-- Navigate buffers
map("n", "<S-l>", "<cmd>bnext<CR>", opts)
map("n", "<S-h>", "<cmd>bprevious<CR>", opts)
map("n", "<leader>c", "<cmd>Bdelete<CR>", opts) -- don't close if unsaved
map("n", "<leader>q", "<cmd>Bdelete!<CR>", opts) -- close it no matter what B)
map("n", "<S-l>", "<cmd>BufferLineCycleNext<CR>", opts) -- :bnext
map("n", "<S-h>", "<cmd>BufferLineCyclePrev<CR>", opts) -- :bprevious
map("n", "]b", "<cmd>BufferLineMoveNext<CR>", opts)
map("n", "[b", "<cmd>BufferLineMovePrev<CR>", opts)
map("n", "<leader>w", "<cmd>Bdelete<CR>", opts) -- don't close if unsaved
map("n", "<leader>c", "<cmd>Bdelete!<CR>", opts) -- close it no matter what B)
-- Toggle Diagnostics
map("n", "<leader>de", "<cmd>lua vim.diagnostic.enable()<cr>", opts)