tokyonight.nvim icon indicating copy to clipboard operation
tokyonight.nvim copied to clipboard

Actual highlights nothing to do with the ones in screenshot:

Open hrqmonteiro opened this issue 3 years ago • 1 comments

Your screenshot:

image

When i installed, on a .tsx file with treesitter enabled:

Screenshot from 2022-06-23 00-05-08

It looks very dim compared to your screenshot, why?

hrqmonteiro avatar Jun 23 '22 03:06 hrqmonteiro

Just to confirm, have you installed the TypeScript parser with :TSInstall typescript?

It may also be that you have conflicting syntax highlighting plugins like leafgarland/typescript-vim or HerringtonDarkholme/yats.vim. If so it might be worth uninstalling those to verify that that fixes things.

wilhelmeek avatar Jun 26 '22 10:06 wilhelmeek

Definitely because you don't have treesitter running in that buffer

folke avatar Sep 10 '22 19:09 folke

Definitely because you don't have treesitter running in that buffer

I have, and i literally wrote that. With treesitter enabled it looks like the second image i posted.

hrqmonteiro avatar Sep 10 '22 21:09 hrqmonteiro

Just to confirm, have you installed the TypeScript parser with :TSInstall typescript?

It may also be that you have conflicting syntax highlighting plugins like leafgarland/typescript-vim or HerringtonDarkholme/yats.vim. If so it might be worth uninstalling those to verify that that fixes things.

Yes, i do have it installed and i don't have any other plugin that conflitcs with the syntax highlighting.

hrqmonteiro avatar Sep 10 '22 21:09 hrqmonteiro

The file still looks like it has no treesitter enabled.

What happens when you do :TSBufToggle highlight? Either way, you need to fix your treesitter first.

folke avatar Sep 10 '22 21:09 folke

You get any errors anywhere? Can you show your treesitter setup?

folke avatar Sep 10 '22 21:09 folke