Tencent / LuaHelper

LuaHelper is a High-performance lua VSCode plugin, Language Server Protocol for lua.
Other
617 stars 93 forks source link

[Feature] Ability to change color for Global/Local variables #45

Open psycho-neon opened 2 years ago

psycho-neon commented 2 years ago

This will be a great feature if an option can be added that can be able to change color for global variables and local variables.

Proposed setting using luahelper.json:

{
    "globalVarColor": "#xxxxxx",
    "localVarColor": "#xxxxxx",
}

or via VSCode:

"luahelper.global_var_color":"#xxxxxxx"
"luahelper.local_var_color":"#xxxxxxx"
yinfei8 commented 2 years ago

There you can set the color of the global variable. Whether local variables need to be set, let me see. image

psycho-neon commented 2 years ago

This made sense. I didn't see it when I use the vscode "Extension Settings" option when I click the Lua Helper. I thought there is no option for this.

Hopefully the local variables can be considered.