Open PuppyGirlBelly opened 8 months ago
Which parsers do you have installed? You can check by typing:
:checkhealth nvim-treesitter<CR>
I think you need at least both javascript
and jsx
to get React tags working (I can see in nvim-treesitter
, that javascript
inherits queries from ecma
and jsx
, so you might be missing one of those?).
I am not sure if this is the problem, but the error makes it sound like there is some unknown query, so this is my guess at what's the problem.
I took a look and I have javascript
, tsx
, typescript
; however I can't seem to install a jsx
as there doesn't seem to be a jsx
parser supported in neovim-treesitter.
https://github.com/nvim-treesitter/nvim-treesitter#supported-languages
I took a look and I have
javascript
,tsx
,typescript
; however I can't seem to install ajsx
as there doesn't seem to be ajsx
parser supported in neovim-treesitter.https://github.com/nvim-treesitter/nvim-treesitter#supported-languages
I guess the jsx
stuff should all be in the javascript
parser then. I just saw here that they split up the jsx
queries from the "standard" javascript
queries.
I have checked this in my own Neovim setup now, and I don't get any errors from 'rainbow-delimiters-react'
.
When you check the parsers, does everything look correct for javascript
? (All checkmarks like here)
Have you tried updating your parsers via :TSUpdate<CR>
and/or updating the nvim-treesitter
plugin? I am on Neovim 0.10, but I can try to see if I can maybe reproduce this on 0.9.4 later, if you still get the error.
Neovim version
0.9.4
Language affected
All
Query
rainbow-delimiters-react
Strategy
No response
Description
Hi, for some reason the healthcheck fails when I have the javascript query rule 'rainbow-delimiters-react' enabled. When I comment it out, the healthcheck passes without issue.
Healthcheck Output
Lazy Settings
Just a note, I like to include as many default settings as I can to make it easier to change settings without looking at documentation. So that is why there are so many comments and settings in my configuration.