feat(vim): add wrapped line movement control
This commit is contained in:
parent
1c8a8b91fb
commit
af27cdea36
@ -55,3 +55,7 @@ map('', '<leader>t', ":TableFormat<CR>")
|
|||||||
|
|
||||||
-- Open lazy.nvim menu
|
-- Open lazy.nvim menu
|
||||||
map('', '<leader>lh', ":Lazy home<CR>")
|
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 })
|
||||||
|
Loading…
Reference in New Issue
Block a user