nvim: add buffer keymaps

This commit is contained in:
tastytea 2022-08-08 19:12:09 +02:00
parent c0d0aee138
commit 58af1e692a
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -4,8 +4,13 @@ end
map('n', '<space>', '<nop>')
map('n', '<M-Left>', ':tabprevious<cr>')
map('n', '<M-Right>', ':tabnext<cr>')
vim.g.mapleader = ','
map('n', '<Leader>b', ':buffers<CR>:buffer<Space>')
map('n', '<M-Left>', ':bprevious<cr>')
map('n', '<M-Right>', ':bnext<cr>')
map('n', '<M-S-Left>', ':tabprevious<cr>')
map('n', '<M-S-Right>', ':tabnext<cr>')
map('n', '<M-BS>', 'db')
vim.cmd([[map! <M-BS> <C-W>]]) -- TODO: figure out how to do that with lua