Error executing vim.schedule lua callback: ...packer/start/nvim-colorizer.lua/lua/colorizer/buffer.lua:112: col value outside range
stack traceback:
[C]: in function 'buf_set_virtual_text'
...packer/start/nvim-colorizer.lua/lua/colorizer/buffer.lua:112: in function 'add_highlight'
...packer/start/nvim-colorizer.lua/lua/colorizer/buffer.lua:149: in function 'highlight'
...packer/start/nvim-colorizer.lua/lua/colorizer/buffer.lua:259: in function 'rehighlight'
...k/packer/start/nvim-colorizer.lua/lua/colorizer/sass.lua:208: in function 'callback'
.../packer/start/nvim-colorizer.lua/lua/colorizer/utils.lua:153: in function 'on_change'
.../packer/start/nvim-colorizer.lua/lua/colorizer/utils.lua:167: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0> j
To Reproduce
I can trigger the error if I have two scss files, one referencing variables in the other (see screenshot).
Open both files
rename variable $foo: #fefefe; to $oo: #fefefe; and save
go to the other file and :e to reload it
go back to the edited file and change $oo back to $foo and save to trigger error
Expected behavior
no error :)
Screenshots
Operating System:
MacOS Ventura 13.1
Neovim Version:
$ nvim --version
NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Ventura-arm64.local
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.2/share/nvim"
Run :checkhealth for more info
Colorizer Version:
$ find ~/.local/share/nvim/ -type d -name 'nvim-colorizer.lua' -exec git rev-parse HEAD \;
cddef405becd72deef72219db005a8bbf0603919
Describe the bug
To Reproduce
I can trigger the error if I have two scss files, one referencing variables in the other (see screenshot).
$foo: #fefefe;
to$oo: #fefefe;
and save:e
to reload it$oo
back to$foo
and save to trigger errorExpected behavior
no error :)
Screenshots
Operating System:
MacOS Ventura 13.1
Neovim Version:
Colorizer Version:
Additional context