Add keymap for bnext and bprev

This commit is contained in:
Ben Shiller 2024-09-26 22:07:26 -05:00
parent e80b00ecb7
commit 7321c08fb5
Signed by: shillerben
GPG Key ID: 959472A099996921

View File

@ -70,6 +70,10 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- file browser -- file browser
vim.keymap.set('n', '<leader>pv', '<cmd>Ex<CR>') vim.keymap.set('n', '<leader>pv', '<cmd>Ex<CR>')
-- switch between buffers
vim.keymap.set('n', '<A-n>', '<cmd>bnext<CR>')
vim.keymap.set('n', '<A-p>', '<cmd>bprev<CR>')
-- BASIC AUTOCOMMANDS -- -- BASIC AUTOCOMMANDS --
vim.api.nvim_create_autocmd('TextYankPost', { vim.api.nvim_create_autocmd('TextYankPost', {