Skip to content

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

Merged
feoh merged 1 commit intonvim-lua:masterfrom
gangelop:TSInstall-javascript
Aug 29, 2023
Merged

treesitter: ensure 'javascript' installed along with typescript and tsx#410
feoh merged 1 commit intonvim-lua:masterfrom
gangelop:TSInstall-javascript

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
melobern added a commit to melobern/kickstart.nvim that referenced this pull request Oct 30, 2024
treesitter: ensure 'javascript' installed along with typescript and tsx
smrznuti1 pushed a commit to smrznuti1/nvc that referenced this pull request Dec 17, 2024
* docs: extract conform.format(opts) into it's own class

* docs: extract conform.format_lines(opts) into it's own class

* refactor: use new nvim_doc_tools capability to remove duplicated class definition

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
smrznuti1 pushed a commit to smrznuti1/nvc that referenced this pull request Dec 17, 2024
* docs: extract conform.format(opts) into it's own class

* docs: extract conform.format_lines(opts) into it's own class

* refactor: use new nvim_doc_tools capability to remove duplicated class definition

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
felixhummel added a commit to felixhummel/nvim that referenced this pull request Dec 19, 2024
treesitter: ensure 'javascript' installed along with typescript and tsx
restray added a commit to restray/kickstart.nvim that referenced this pull request Mar 16, 2025
treesitter: ensure 'javascript' installed along with typescript and tsx
tkappedev pushed a commit to tkappedev/kickstart.nvim that referenced this pull request Jun 14, 2025
treesitter: ensure 'javascript' installed along with typescript and tsx
apriljarosz pushed a commit to apriljarosz/kickstart.nvim that referenced this pull request Jun 19, 2025
treesitter: ensure 'javascript' installed along with typescript and tsx
eduardofuncao pushed a commit to eduardofuncao/config.nvim that referenced this pull request Aug 5, 2025
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