IceNvim icon indicating copy to clipboard operation
IceNvim copied to clipboard

[Bug] nvim-treesitter behaves strangely for lua files on windows

Open Shaobin-Jiang opened this issue 1 year ago • 1 comments

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.

Shaobin-Jiang avatar May 09 '24 07:05 Shaobin-Jiang

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.

Shaobin-Jiang avatar May 13 '24 04:05 Shaobin-Jiang