From e90dcaccb0ccb17af10c96d3d1df6001e8b5b26b Mon Sep 17 00:00:00 2001 From: RubikNube Date: Sat, 22 Mar 2025 12:02:05 +0100 Subject: [PATCH] Added shortcuts for buffer navigation --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 86185e0b..477e9a07 100644 --- a/init.lua +++ b/init.lua @@ -190,6 +190,10 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +vim.keymap.set('n', '[b', ':bprevious', { desc = 'Switch to previous buffer.' }) +vim.keymap.set('n', ']b', ':bnext', { desc = 'Switch to next buffer.' }) +vim.keymap.set('n', '[B', ':bfirst', { desc = 'Switch to first buffer.' }) +vim.keymap.set('n', ']B', ':blast', { desc = 'Switch to last buffer.' }) -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands`