karb94 / neoscroll.nvim

Smooth scrolling neovim plugin written in lua
MIT License
1.46k stars 36 forks source link

Error ... attempt to index a nil value #31

Closed daiyanze closed 3 years ago

daiyanze commented 3 years ago

Detail

Recently I've encountered an unexpected error when I press down CTRL+D to scroll down. Same error happened to +U.

image

Thought this commit caused issue. 1de7d035c6bbcf367d96954a02b248b4fedc5978

I also tried with some former commits, they are all good to me.

How to reproduce

Open any file and press down CTRL+D. The page doesn't scroll down at all.

karb94 commented 3 years ago

Can you pull the latest commit? There's a high chance that was causing the issue. Let me know how it goes.

daiyanze commented 3 years ago

@karb94 The latest commit is working. There's no error anymore. Thank you!

bitterjug commented 3 years ago

I just got the same error. I installed with

  Plug 'karb94/neoscroll.nvim'

And ran `

:lua require('neoscroll').setup()`

from the command line.

Now , , , give

E5108: Error executing lua ...onfig/nvim/plugged/neoscroll.nvim/lua/neoscroll/init.lua:306: attempt to index a nil value

I'm guessing I have the latest commit from master if I just installed. What might be going wrong?

karb94 commented 3 years ago

@bitterjug can you open a new issue? I don't think it's related to this one. Some initial questions: