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

Differ the color of Local variables, variable types, formal parameters and actual parameters #92

Closed narutozxp closed 8 months ago

narutozxp commented 8 months ago

my nevim theme is as follows. I wish all variable types have the same color(such as int and vector), besides, the color of Local variables should be different from formal parameters and actual parameters. M{226GJYR~TYM7UIOH39QRI

Just like the following pic came from vscode monokai pro. 04C_Q(PI6GW8~G~V)ZYZYQL Do you have any tips to do that? Thanks!

loctvl842 commented 8 months ago

I agree with you that my colorscheme is kinda "white". Just did some tweaks on the highlights. Give the newest version a spin and drop a comment. Don't forget to enable semantic token and treesitter

narutozxp commented 8 months ago

It seems still a bug. 1MAC6O9Y5FN)4GR{3L@J87B Just look at the pic above, the var num_sets is still white which is inconsistent with the color of the actual parameters. In my opinion, if all actual parameters have the same color which is different from the local var's, I could distinguish whether a var is an actual parameter or not quickly. I think it's helpful when my function body is too long.

loctvl842 commented 8 months ago

It's not a bug, neovim is not vscode. num_sets in this case is validated as a parameter variable in vscode while in neovim it's just like any other normal variables.