sainnhe / sonokai

High Contrast & Vivid Color Scheme based on Monokai Pro
MIT License
1.65k stars 119 forks source link

Better ruby highlights #62

Closed gabrielsugai closed 2 years ago

gabrielsugai commented 2 years ago

Hi guys, it's not a bug, but, is there a way to get a better ruby highlights? symbols, and some functions, hash keys dont get highlighted πŸ˜” and i realy liked this colorscheme πŸ˜…

image image
sainnhe commented 2 years ago

The default highlight engine is too bad that many tokens can't be colored.

Try semantic highlight engine (in coc.nvim) or nvim-treesitter.

This is what it looks like when using tree-sitter.

ζˆͺ屏2022-05-28 δΈ‹εˆ5 05 12

gabrielsugai commented 2 years ago

The default highlight engine is too bad that many tokens can't be colored.

Try semantic highlight engine (in coc.nvim) or nvim-treesitter.

This is what it looks like when using tree-sitter.

ζˆͺ屏2022-05-28 δΈ‹εˆ5 05 12

Thanks for the help, But im a little newbie at this haha, i tried to found how i configure semantic highlight at coc-settings.json, but i failed πŸ˜”πŸ₯² could you show how can i do that?

sainnhe commented 2 years ago

Some language servers don't support semantic highlighting feature. If you are using https://solargraph.org/guides/language-server , this feature is not supported.

I'd suggest tree-sitter instead, it's more general in use of most languages, and has better highlighting most of the time.

gabrielsugai commented 2 years ago

Oh thanks its perfect now haha it works with tree-sitter, thank u 😎