Add buffer cycling

This commit is contained in:
Rawley Fowler 2022-04-30 10:26:44 -06:00 committed by GitHub
parent d2b365cdc1
commit b3ff9f8a70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,9 @@ function map(mode, lhs, rhs, opts)
end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
---- Cycling through buffers
map('n', '<C-h>', ':bprev<cr>', { noremap = true })
map('n', '<C-l>', ':bnext<cr>', { noremap = true })
---- NERDTree
map('n', '<S-w>', ':NERDTreeToggle<cr>', { noremap = true })
map('n', '<S-q>', ':NERDTreeClose<cr>', { noremap = true })