folke / tokyonight.nvim

🏙 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins. Includes additional themes for Kitty, Alacritty, iTerm and Fish.
Apache License 2.0
6.44k stars 433 forks source link

style(treesitter): add treesitter tag.builtin keyword #597

Closed rodvicj closed 4 months ago

rodvicj commented 4 months ago

Description

This PR adds keyword to treesitter for html tag names support and will make html tags use their default colors when using javascript frameworks like reactjs.

Screenshots

Without ["@tag.builtin"], the html tags inside reactjs uses different colors compared to colors inside vanila html files. 2024-07-13_12-28

With the added treesitter keyword ["@tag.builtin"]. 2024-07-13_12-30

folke commented 4 months ago

That's on purpose. However, the styles didn't match tsx files. Just changed that.

image

Custom tags are red and default tags blue.