Closed ghost closed 1 year ago
This is LSP semantic tokens then. Given the wall of errors in your config, it's virtually impossible to be treesitter.
I fixed the errors manually. It still doesn't work. :(
nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
- OK `tree-sitter` found 0.20.8 (d4c1bf7ce78051b7f4a381d1508d68928512ed5f) (parser generator, only needed for :TSInstallFromGrammar)
- OK `node` found v18.16.1 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: cc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
OS Info:
{
machine = "x86_64",
release = "6.2.0-27-generic",
sysname = "Linux",
version = "#28-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 12 22:39:51 UTC 2023"
} ~
Parser/Features H L F I J
- ada ✓ ✓ ✓ . .
- agda ✓ . ✓ . .
- arduino ✓ ✓ ✓ ✓ ✓
- astro ✓ ✓ ✓ ✓ ✓
- awk ✓ . . . ✓
- bash ✓ ✓ ✓ . ✓
- bass ✓ ✓ ✓ ✓ ✓
- beancount ✓ . ✓ . .
- bibtex ✓ . ✓ ✓ .
- bicep ✓ ✓ ✓ ✓ ✓
- blueprint ✓ . . . .
- c ✓ ✓ ✓ ✓ ✓
- c_sharp ✓ ✓ ✓ . ✓
- capnp ✓ ✓ ✓ ✓ ✓
- chatito ✓ ✓ ✓ ✓ ✓
- clojure ✓ ✓ ✓ . ✓
- cmake ✓ . ✓ ✓ .
- comment ✓ . . . .
- commonlisp ✓ ✓ ✓ . .
- cooklang ✓ . . . .
- corn ✓ ✓ ✓ ✓ .
- cpon ✓ ✓ ✓ ✓ ✓
- cpp ✓ ✓ ✓ ✓ ✓
- css ✓ . ✓ ✓ ✓
- cuda ✓ ✓ ✓ ✓ ✓
- cue ✓ ✓ ✓ ✓ ✓
- dart ✓ ✓ ✓ ✓ ✓
- devicetree ✓ ✓ ✓ ✓ ✓
- dhall ✓ . ✓ . ✓
- diff ✓ . . . .
- dockerfile ✓ . . . ✓
- dot ✓ . . . ✓
- ebnf ✓ . . . .
- eex ✓ . . . ✓
- elixir ✓ ✓ ✓ ✓ ✓
- elm ✓ . . . ✓
- elsa ✓ ✓ ✓ ✓ ✓
- elvish ✓ . . . ✓
- embedded_template ✓ . . . ✓
- erlang ✓ . ✓ . .
- fennel ✓ ✓ ✓ . ✓
- firrtl ✓ ✓ ✓ ✓ ✓
- fish ✓ ✓ ✓ ✓ ✓
- foam ✓ ✓ ✓ ✓ ✓
- fortran ✓ . ✓ ✓ .
- fsh ✓ . . . .
- func ✓ . . . .
- fusion ✓ ✓ ✓ ✓ .
- gdscript ✓ ✓ ✓ ✓ ✓
- git_config ✓ . . . .
- git_rebase ✓ . . . ✓
- gitattributes ✓ . . . ✓
- gitcommit ✓ . . . ✓
- gitignore ✓ . . . .
- gleam ✓ ✓ ✓ ✓ ✓
- glimmer ✓ ✓ ✓ ✓ .
- glsl ✓ ✓ ✓ ✓ ✓
- go ✓ ✓ ✓ ✓ ✓
- godot_resource ✓ ✓ ✓ . .
- gomod ✓ . . . ✓
- gosum ✓ . . . .
- gowork ✓ . . . ✓
- graphql ✓ . . ✓ ✓
- hack ✓ . . . .
- hare ✓ ✓ ✓ ✓ ✓
- haskell ✓ . ✓ . ✓
- hcl ✓ . ✓ ✓ ✓
- heex ✓ ✓ ✓ ✓ ✓
- hjson ✓ ✓ ✓ ✓ ✓
- hlsl ✓ ✓ ✓ ✓ ✓
- hocon ✓ . . . ✓
- html ✓ ✓ ✓ ✓ ✓
- htmldjango ✓ . ✓ ✓ ✓
- http ✓ . . . ✓
- ini ✓ . ✓ . .
- ispc ✓ ✓ ✓ ✓ ✓
- janet_simple ✓ ✓ ✓ . ✓
- java ✓ ✓ ✓ ✓ ✓
- javascript ✓ ✓ ✓ ✓ ✓
- jq ✓ . . . ✓
- jsdoc ✓ . . . .
- json ✓ ✓ ✓ ✓ .
- json5 ✓ . . . ✓
- jsonc ✓ ✓ ✓ ✓ ✓
- jsonnet ✓ . . . .
- julia ✓ ✓ ✓ ✓ ✓
- kdl ✓ ✓ ✓ ✓ ✓
- kotlin ✓ ✓ ✓ . ✓
- lalrpop ✓ ✓ . . ✓
- latex ✓ . ✓ . ✓
- ledger ✓ . ✓ ✓ ✓
- llvm ✓ . . . .
- lua ✓ ✓ ✓ ✓ ✓
- luadoc ✓ . . . .
- luap ✓ . . . .
- luau ✓ ✓ ✓ ✓ ✓
- m68k ✓ ✓ ✓ . ✓
- make ✓ . ✓ . ✓
- markdown ✓ . ✓ ✓ ✓
- markdown_inline ✓ . . . ✓
- matlab ✓ ✓ ✓ ✓ ✓
- menhir ✓ . . . ✓
- mermaid ✓ . . . .
- meson ✓ . ✓ . ✓
- nickel ✓ . . ✓ .
- ninja ✓ . ✓ ✓ .
- nix ✓ ✓ ✓ . ✓
- norg . . . . .
- objc ✓ ✓ ✓ ✓ ✓
- ocaml ✓ ✓ ✓ ✓ ✓
- ocaml_interface ✓ ✓ ✓ ✓ ✓
- odin ✓ ✓ ✓ ✓ ✓
- org . . . . .
- pascal ✓ ✓ ✓ ✓ ✓
- passwd ✓ . . . .
- perl ✓ . ✓ . ✓
- php ✓ ✓ ✓ ✓ ✓
- phpdoc ✓ . . . .
- pioasm ✓ . . . ✓
- po ✓ . ✓ . ✓
- poe_filter ✓ . ✓ ✓ ✓
- pony ✓ ✓ ✓ ✓ ✓
- prisma ✓ . . . .
- proto ✓ . ✓ . .
- prql ✓ . . . ✓
- pug ✓ . . . ✓
- puppet ✓ ✓ ✓ ✓ ✓
- python ✓ ✓ ✓ ✓ ✓
- ql ✓ ✓ ✓ ✓ ✓
- qmldir ✓ . . . ✓
- qmljs ✓ . ✓ . .
- query ✓ ✓ ✓ ✓ ✓
- r ✓ ✓ . ✓ ✓
- racket ✓ . ✓ . ✓
- rasi ✓ ✓ ✓ ✓ .
- regex ✓ . . . .
- rego ✓ . . . ✓
- rnoweb ✓ . ✓ . ✓
- ron ✓ ✓ ✓ ✓ ✓
- rst ✓ ✓ . . ✓
- ruby ✓ ✓ ✓ ✓ ✓
- rust ✓ ✓ ✓ ✓ ✓
- scala ✓ ✓ ✓ . ✓
- scheme ✓ . ✓ . ✓
- scss ✓ . ✓ ✓ .
- slint ✓ . . ✓ .
- smali ✓ ✓ ✓ ✓ ✓
- smithy ✓ . . . .
- solidity ✓ . . . .
- sparql ✓ ✓ ✓ ✓ ✓
- sql ✓ . . ✓ ✓
- squirrel ✓ ✓ ✓ ✓ ✓
- starlark ✓ ✓ ✓ ✓ ✓
- supercollider ✓ ✓ ✓ ✓ ✓
- surface ✓ . ✓ ✓ ✓
- svelte ✓ . ✓ ✓ ✓
- sxhkdrc ✓ . ✓ . ✓
- t32 ✓ ✓ ✓ ✓ ✓
- tablegen ✓ ✓ ✓ ✓ ✓
- terraform ✓ . ✓ ✓ ✓
- thrift ✓ ✓ ✓ ✓ ✓
- tiger ✓ ✓ ✓ ✓ ✓
- tlaplus ✓ ✓ ✓ . ✓
- todotxt ✓ . . . .
- toml ✓ ✓ ✓ ✓ ✓
- tsx ✓ ✓ ✓ ✓ ✓
- turtle ✓ ✓ ✓ ✓ ✓
- twig ✓ . . . ✓
- typescript ✓ ✓ ✓ ✓ ✓
- ungrammar ✓ ✓ ✓ ✓ ✓
- usd ✓ ✓ ✓ ✓ .
- uxntal ✓ ✓ ✓ ✓ ✓
- v ✓ ✓ ✓ ✓ ✓
- vala ✓ . ✓ . .
- verilog ✓ ✓ ✓ . ✓
- vhs ✓ . . . .
- vim ✓ ✓ ✓ . ✓
- vimdoc ✓ . . . ✓
- vue ✓ . ✓ ✓ ✓
- wgsl ✓ . ✓ ✓ .
- wgsl_bevy ✓ . ✓ ✓ .
- yaml ✓ ✓ ✓ ✓ ✓
- yang ✓ . ✓ ✓ ✓
- yuck ✓ ✓ ✓ ✓ ✓
- zig ✓ . ✓ ✓ ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang} ~
Describe the bug
I using TreeSitter for Astro. For some reason I'm getting some of the syntax highlighting when starting template of the HTML part in Astro like so:
I'm using the Lazy plugin manager.
And I have tailwindcss configured as my lsp config. (I'm using mason to install)
To Reproduce
Create a file like so:
Expected behavior
Full syntax highlighting
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
No response