IceNvim
IceNvim copied to clipboard
[Bug] nvim-treesitter behaves strangely for lua files on windows
This following error frequently occurs:
.../nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 3272 for language lua
A fix for similar issues can be viewed here, but I have not been able to find a way to remove the bundled queries that come with neovim.
This issue currently only occurs on Windows. My temporary solution is to override the vim._ts_parse_query function (see 1d0d30f). However, that definitely is not a nice solution. I'm open to suggestions here.
Added a commit that I think will fix this issue. But still I am going to leave it open for now before further testing is done.