Nvim-treesitter: syntax highlighting of some languages randomly only work

Created on 12 Dec 2020  路  4Comments  路  Source: nvim-treesitter/nvim-treesitter

I have html , css and js parsers installed and only some of it works and this is my config
image

https://www.youtube.com/watch?v=VsZjhPYdf4A ( the odd behaviour of only js working with config and html /css working without config )

bug

Most helpful comment

yea I have all parsers installed , and nvm it works today after a reboot

All 4 comments

if you disable setup of course it won't highlight anymore and use the base vim regex based highlighting, which is why js looks so empty. Also doesn't look like your html and css are not highlighted using treesitter. Maybe your colorscheme needs to be adapted ?

yeah but if I enable all ( html , css , js ) with treesitter then only JS works :l

i use html css, js, ts ,tsx and jsx almost every day and everything works as expected. Do you have all parsers installed for sure ? Is your colorscheme well configured ? What are your neovim version / nvim-treesitter version ?

yea I have all parsers installed , and nvm it works today after a reboot

Was this page helpful?
0 / 5 - 0 ratings