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 end
vim.api.nvim_set_keymap(mode, lhs, rhs, options) vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end end
---- Cycling through buffers
map('n', '<C-h>', ':bprev<cr>', { noremap = true })
map('n', '<C-l>', ':bnext<cr>', { noremap = true })
---- NERDTree ---- NERDTree
map('n', '<S-w>', ':NERDTreeToggle<cr>', { noremap = true }) map('n', '<S-w>', ':NERDTreeToggle<cr>', { noremap = true })
map('n', '<S-q>', ':NERDTreeClose<cr>', { noremap = true }) map('n', '<S-q>', ':NERDTreeClose<cr>', { noremap = true })