Add :bnext :bprevious keybindings
This commit is contained in:
parent
27b9212cf8
commit
6d7a054198
1 changed files with 8 additions and 0 deletions
|
|
@ -44,6 +44,14 @@ vim.keymap.set("n", "<leader>bd", function()
|
|||
vim.cmd("bd")
|
||||
end, {})
|
||||
|
||||
-- Keybding for cycling through the list of buffers
|
||||
vim.keymap.set("n", "<leader>bn", function()
|
||||
vim.cmd("bn")
|
||||
end, {})
|
||||
vim.keymap.set("n", "<leader>bp", function()
|
||||
vim.cmd("bp")
|
||||
end, {})
|
||||
|
||||
-- Define a function to execute the appropriate program based on file type
|
||||
vim.keymap.set("n", "<leader>/", function()
|
||||
local filetype = vim.bo.filetype
|
||||
|
|
|
|||
Loading…
Reference in a new issue