loctvl842 / monokai-pro.nvim

Monokai Pro theme for Neovim written in Lua, with multiple filters: Pro, Classic, Machine, Octagon, Ristretto, Spectrum
MIT License
424 stars 40 forks source link

Colors change with LSP #80

Closed jsongerber closed 11 months ago

jsongerber commented 11 months ago

Hi,

When LSP is done loading with typescript using tsserver, the colors changes (see screen recording). Variable colors which were white become purple, and interface colors also changes.

I think it may be related to semantic tokens, but I'm not sure.

https://github.com/loctvl842/monokai-pro.nvim/assets/18051702/6e6e9948-e451-4c35-a0a3-20fa6d49a84d

Also, should export statement be red? Anyway, nice theme! Thanks

loctvl842 commented 11 months ago

Indeed, the colors are derived from semantic tokens and Treesitter. Since Treesitter loads first, and semantic tokens load afterward, this sequence of loading results in a change in colors.

jsongerber commented 11 months ago

Thank you for your fast response. Shouldn't variables stay white or is there a reason for it to become another color? If this is intended behavior I'll close the issue

loctvl842 commented 11 months ago

Thank you for your fast response. Shouldn't variables stay white or is there a reason for it to become another color? If this is intended behavior I'll close the issue

If variable is constant, it will use magenta color. Thanks for using it.