diff --git a/.config/nvim/lua/keybindings.lua b/.config/nvim/lua/keybindings.lua index 823a722..e4ea154 100644 --- a/.config/nvim/lua/keybindings.lua +++ b/.config/nvim/lua/keybindings.lua @@ -55,3 +55,7 @@ map('', 't', ":TableFormat") -- Open lazy.nvim menu map('', 'lh', ":Lazy home") + +-- 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 })