feat(vim): add wrapped line movement control

This commit is contained in:
Tanguy Herbron 2023-04-12 12:08:11 +02:00
parent 1c8a8b91fb
commit af27cdea36

View File

@ -55,3 +55,7 @@ map('', '<leader>t', ":TableFormat<CR>")
-- Open lazy.nvim menu
map('', '<leader>lh', ":Lazy home<CR>")
-- Allow transparent scrolling through wrapped lines
vim.api.nvim_set_keymap("n", "k", "v:count == 0 ? 'gk' : 'k'", { noremap = true, expr = true, silent = true })
vim.api.nvim_set_keymap("n", "j", "v:count == 0 ? 'gj' : 'j'", { noremap = true, expr = true, silent = true })