In neovim, when I write an html page with , the contents are not syntax highlighted. If I change it to text/javascript, it works fine.
How can I make syntax highlight like text/javascript in neovim?
Output of :checkhealth nvim-treesitter
:
nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
- OK `tree-sitter` found 0.24.6 (parser generator, only needed for :TSInstallFromGrammar)
- OK `node` found v23.5.0 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: Apple clang version 16.0.0 (clang-1600.0.26.4)
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
OS Info:
{
machine = "arm64",
release = "24.0.0",
sysname = "Darwin",
version = "Darwin Kernel Version 24.0.0: Tue Sep 24 23:35:10 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6031"
} ~
Parser/Features H L F I J
...
- css ✓ . ✓ ✓ ✓
...
- html ✓ ✓ ✓ ✓ ✓
...
- javascript ✓ ✓ ✓ ✓ ✓
...
- tsx ✓ ✓ ✓ ✓ ✓
- typescript ✓ ✓ ✓ ✓ ✓
...