craftzdog / solarized-osaka.nvim

🏯 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins.
Apache License 2.0
650 stars 29 forks source link

.tsx files broken highlights #31

Closed Redoxahmii closed 4 months ago

Redoxahmii commented 5 months ago

The parser for .tsx seems to have changed and is using altogether different tags.

Screenshot_20240410_063749

Screenshot_20240410_072414

Screenshot_20240410_072539

Redoxahmii commented 4 months ago

@craftzdog Treesitter has created a separate Tree parser for tsx which is named tsx which needed to be installed in order for highlights to work. That was not installed for me which was causing my syntax to break so these changes might not be necessary. Before it used typescript as far as i think but i might be wrong. Sorry for my mistake.

craftzdog commented 4 months ago

I have tsx installed, so I think that's why we've been seeing the different highlighting in https://github.com/craftzdog/solarized-osaka.nvim/issues/24#issuecomment-1982597578 Thanks for letting me know and good to hear that you've found the culprit.