You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit id=4cb8fe7c0e0cbed2fd0852e5ee7f4970359c9650
I open README.txt,
type
I get an error neoscroll.nvim/lua/neoscroll/init.lua:198: Vim(normal):E471: Argument required: normal!
It works well by using commit id=a1c9db5a3dcc900d98bc2efb6c10d3a8b08e42ef
My neoscroll config
require('neoscroll').setup({
mappings= {'<C-u>', '<C-d>', '<C-b>', '<C-f>',
'<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
hide_cursor=true, -- Hide cursor while scrollingstop_eof=true, -- Stop at <EOF> when scrolling downwardsrespect_scrolloff=false, -- Stop scrolling when the cursor reaches the scrolloff margin of the filecursor_scrolls_alone=true, -- The cursor will keep on scrolling even if the window cannot scroll furthereasing=false, -- easing_function will be used in all scrolling animations with some defaultseasing_function=function(x) returnmath.pow(x, 2) end-- default easing function
})
localt= {}
-- Syntax: t[keys] = {function, {function arguments}}t['<C-u>'] = {'scroll', {'-vim.wo.scroll', 'true', '8'}}
t['<C-d>'] = {'scroll', { 'vim.wo.scroll', 'true', '8'}}
t['<C-b>'] = {'scroll', {'-vim.api.nvim_win_get_height(0)', 'true', '7'}}
t['<C-f>'] = {'scroll', { 'vim.api.nvim_win_get_height(0)', 'true', '7'}}
t['<C-y>'] = {'scroll', {'-0.10', 'false', '20'}}
t['<C-e>'] = {'scroll', { '0.10', 'false', '20'}}
t['zt'] = {'zt', {'7'}}
t['zz'] = {'zz', {'7'}}
t['zb'] = {'zb', {'7'}}
require('neoscroll.config').set_mappings(t)
The text was updated successfully, but these errors were encountered:
This is neovim bug as mentioned in #11 and #28, to fix it use vim.opt_local.scrolloff = 0, and set use_local_scrolloff = true in your require('neoscroll').setup()
@karb94, I found this issue persists when restore a session.
commit id=4cb8fe7c0e0cbed2fd0852e5ee7f4970359c9650
I open README.txt,
type
I get an error
neoscroll.nvim/lua/neoscroll/init.lua:198: Vim(normal):E471: Argument required: normal!
It works well by using commit id=a1c9db5a3dcc900d98bc2efb6c10d3a8b08e42ef
My neoscroll config
The text was updated successfully, but these errors were encountered: