From 6d7a054198bd2a5df2ee1e71ca0f7562bc276f6f Mon Sep 17 00:00:00 2001 From: Simon Lasbrugnas Date: Tue, 25 Jul 2023 16:15:26 +0200 Subject: [PATCH] Add :bnext :bprevious keybindings --- lua/default/remap.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/default/remap.lua b/lua/default/remap.lua index 857bad1..0b5d280 100644 --- a/lua/default/remap.lua +++ b/lua/default/remap.lua @@ -44,6 +44,14 @@ vim.keymap.set("n", "bd", function() vim.cmd("bd") end, {}) +-- Keybding for cycling through the list of buffers +vim.keymap.set("n", "bn", function() + vim.cmd("bn") +end, {}) +vim.keymap.set("n", "bp", function() + vim.cmd("bp") +end, {}) + -- Define a function to execute the appropriate program based on file type vim.keymap.set("n", "/", function() local filetype = vim.bo.filetype