When installing a new parser through the prompt the following error is thrown:
Error executing vim.schedule lua callback: .../nvim/rocks/rocks_rtp/lua/rocks_treesitter/highlight.lua:100: attempt to compare table with nil
stack traceback:
.../nvim/rocks/rocks_rtp/lua/rocks_treesitter/highlight.lua:100: in function 'f'
...im-unwrapped-nightly/share/nvim/runtime/lua/vim/iter.lua:499: in function 'fold'
.../nvim/rocks/rocks_rtp/lua/rocks_treesitter/highlight.lua:88: in function 'prompt_auto_install'
.../nvim/rocks/rocks_rtp/lua/rocks_treesitter/highlight.lua:124: in function <.../nvim/rocks/rocks_rtp/lua/rocks_treesitter/highlight.lua:123>
This example is specifically for install the nix parser but the issues is general.
Hi :)
When installing a new parser through the prompt the following error is thrown:
This example is specifically for install the
nix
parser but the issues is general.Configuration
I believe this is due to [vim.version.parse returning nil on invalid inputs](https://neovim.io/doc/user/lua.html#vim.version.parse()) but the code expects it to throw an error, since it is wrapped in a
pcall