fixed up/down arrow behavior in insert mode

This commit is contained in:
Rudis Muiznieks 2022-09-03 18:13:01 -05:00
parent 2ef3190380
commit 72e7f7e079
Signed by: rudism
GPG key ID: CABF2F86EF7884F9

View file

@ -8,6 +8,8 @@ vim.api.nvim_set_keymap('', 'k', 'gk', snoremap)
vim.api.nvim_set_keymap('', 'j', 'gj', snoremap)
vim.api.nvim_set_keymap('', '<Up>', 'gk', snoremap)
vim.api.nvim_set_keymap('', '<Down>', 'gj', snoremap)
vim.api.nvim_set_keymap('i', '<Up>', '<c-\\><c-o>gk', snoremap)
vim.api.nvim_set_keymap('i', '<Down>', '<c-\\><c-o>gj', snoremap)
-- file navigation
vim.api.nvim_set_keymap('n', '-', '<cmd>lua require("telescope").extensions.vinegar.file_browser()<cr>', noremap)