require('neoscroll').setup({ ease_function = "quadratic", -- Set any options as needed pre_hook = function(info) if info == "cursorline" then vim.wo.cursorline = false end end, post_hook = function(info) if info == "cursorline" then vim.wo.cursorline = true end end }) local t = {} -- Syntax: t[keys] = {function, {function arguments}} t[''] = {'scroll', {'-vim.wo.scroll', 'true', '250', 'sine', [['cursorline']]}} t[''] = {'scroll', { 'vim.wo.scroll', 'true', '250', 'sine', [['cursorline']]}} t[''] = {'scroll', {'-vim.api.nvim_win_get_height(0)', 'true', '450'}} t[''] = {'scroll', { 'vim.api.nvim_win_get_height(0)', 'true', '450'}} t[''] = {'scroll', {'-0.10', 'false', '100'}} t[''] = {'scroll', { '0.10', 'false', '100'}} t['zt'] = {'zt', {'250'}} t['zz'] = {'zz', {'250'}} t['zb'] = {'zb', {'250'}} require('neoscroll.config').set_mappings(t)