From d621b80685e1f81d42ad8bd7f1fa26d8c4a85171 Mon Sep 17 00:00:00 2001 From: Max Luebke Date: Fri, 31 Jan 2025 13:33:18 +0100 Subject: [PATCH] refactor(keymap): use instead of for buffer navigation --- init.lua | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/init.lua b/init.lua index af10f98..a6031d8 100644 --- a/init.lua +++ b/init.lua @@ -202,34 +202,34 @@ local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } -- Move to previous/next -map('n', '', 'BufferPrevious', opts) -map('n', '', 'BufferNext', opts) +map('n', '', 'BufferPrevious', opts) +map('n', '', 'BufferNext', opts) -- Re-order to previous/next -map('n', '', 'BufferMovePrevious', opts) -map('n', '>', 'BufferMoveNext', opts) +map('n', '', 'BufferMovePrevious', opts) +map('n', '>', 'BufferMoveNext', opts) -- Goto buffer in position... -map('n', '', 'BufferGoto 1', opts) -map('n', '', 'BufferGoto 2', opts) -map('n', '', 'BufferGoto 3', opts) -map('n', '', 'BufferGoto 4', opts) -map('n', '', 'BufferGoto 5', opts) -map('n', '', 'BufferGoto 6', opts) -map('n', '', 'BufferGoto 7', opts) -map('n', '', 'BufferGoto 8', opts) -map('n', '', 'BufferGoto 9', opts) -map('n', '', 'BufferLast', opts) +map('n', '', 'BufferGoto 1', opts) +map('n', '', 'BufferGoto 2', opts) +map('n', '', 'BufferGoto 3', opts) +map('n', '', 'BufferGoto 4', opts) +map('n', '', 'BufferGoto 5', opts) +map('n', '', 'BufferGoto 6', opts) +map('n', '', 'BufferGoto 7', opts) +map('n', '', 'BufferGoto 8', opts) +map('n', '', 'BufferGoto 9', opts) +map('n', '', 'BufferLast', opts) -- Pin/unpin buffer -map('n', '', 'BufferPin', opts) +map('n', '', 'BufferPin', opts) -- Goto pinned/unpinned buffer -- :BufferGotoPinned -- :BufferGotoUnpinned -- Close buffer -map('n', '', 'BufferClose', opts) +map('n', '', 'BufferClose', opts) -- Wipeout buffer -- :BufferWipeout