diff options
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/semantic-tokens.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/script/provider/semantic-tokens.lua b/script/provider/semantic-tokens.lua index 448bbe2a..0c28b8b8 100644 --- a/script/provider/semantic-tokens.lua +++ b/script/provider/semantic-tokens.lua @@ -108,8 +108,12 @@ end config.watch(function (key, value) if key == 'Lua.color.mode' then - if value == 'Semantic' then - enable() + if value == 'Semantic' or value == 'SemanticEnhanced' then + if isEnable then + refresh() + else + enable() + end else disable() end |