hlchunk.nvim
hlchunk.nvim copied to clipboard
`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
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
Maybe it is worth to add something like or 0 (or something like that) there?
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)
(also, happens only when blank module is enabled)