nvim: fix <C-BS> keymap

This commit is contained in:
tastytea 2022-08-13 19:42:34 +02:00
parent d6b2f4ff4c
commit cfbd482dee
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -24,8 +24,10 @@ for key, letter in pairs({ Left = 'h', Down = 'j', Up = 'k', Right = 'l' }) do
end end
-- remove word -- remove word
map('n', '<M-BS>', 'db') map('n', '<C-BS>', 'db')
vim.cmd([[map! <M-BS> <C-W>]]) -- TODO: figure out how to do that with lua vim.cmd([[map! <C-BS> <C-W>]]) -- TODO: figure out how to do that with lua (???)
map('n', '<M-BS>', 'db') -- terminal sends M-BS for C-BS
vim.cmd([[map! <M-BS> <C-W>]])
map('n', '<C-Del>', 'dw') map('n', '<C-Del>', 'dw')
map('i', '<C-Del>', '<C-O>dw') map('i', '<C-Del>', '<C-O>dw')