Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treesitter: ensure 'javascript' installed along with typescript and tsx #410

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

gangelop
Copy link
Contributor

This parser is actually needed for some JSX parsing, and since typescript and tsx are already getting installed, it makes sense to also install the javascript parser.


I actually spent three days trying to figure out why my JSX wasn't being parsed and highlighted and it was because of this.
The three days of course is also because I'm a neovim noob trying to modernize my tools after years of vim+ctags. I had to first understand that some of the highlighting is done by tsserver LSP. Then I had to learn what tree-sitter is. Eventually I tried to run :InspectTree to clearly see that it is complaining about a missing parser. And here we are.👏

The situation is made more difficult given the plethora of treesitter highlighting bug reports for neovim in the recent past, which were all irrelevant to my problem and mostly already resolved because the treesitter neovim integreation has moved so fast over the past couple of years!

This is all to say: this project aims to minimize noob pain (and it mostly succeeds, thank you!), and including the javascript treesitter parser might help alleviate a lot of noob pain.

This parser is actually needed for some *JSX* parsing, and since
typescript and tsx are already getting installed, it makes sense to
also install the javascript parser.
@feoh feoh merged commit 1a971cb into nvim-lua:master Aug 29, 2023
qiuye2015 pushed a commit to qiuye2015/fjp.nvim that referenced this pull request Dec 10, 2023
treesitter: ensure 'javascript' installed along with typescript and tsx
s-frick pushed a commit to s-frick/kickstart.nvim that referenced this pull request Jul 29, 2024
treesitter: ensure 'javascript' installed along with typescript and tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants