Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua/hlchunk/utils/indentHelper.lua:28: attempt to perform arithmetic on local 'leftcol' (a nil value) error when terminal width is less than 138 cols #145

Open
msva opened this issue Oct 4, 2024 · 2 comments

Comments

@msva
Copy link

msva commented Oct 4, 2024

Describe the bug
When I open nvim with hlchunk installed and configured, and if terminal width is less that 138 cols, I'm getting following error on nvim startup:

...vim/lazy/hlchunk.nvim/lua/hlchunk/utils/indentHelper.lua:28: attempt to perform arithmetic on local 'leftcol' (a nil value)

Screenshots
image

Maybe it is worth to add something like or 0 (or something like that) there?

@msva
Copy link
Author

msva commented Oct 4, 2024

Well, it seems that it also sometimes appears not even when width is <138 cols.
Just nvim don't wait for I press enter, and boots further.

I just found that is also appears when I editing nvim lua config with full width (236 cols)

@msva
Copy link
Author

msva commented Oct 4, 2024

(also, happens only when blank module is enabled)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant