diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-05 20:19:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-05 20:19:13 +0800 |
commit | e89ccc2b6ea6be1282f9da80f366c267bccf5efc (patch) | |
tree | dd76d61e476b3050e1cfe27482a6040094b480e0 /script/provider/semantic-tokens.lua | |
parent | 70e83968473caa16355a380e7a4ab438f5fdd00a (diff) | |
download | lua-language-server-e89ccc2b6ea6be1282f9da80f366c267bccf5efc.zip |
fix completion
Diffstat (limited to 'script/provider/semantic-tokens.lua')
-rw-r--r-- | script/provider/semantic-tokens.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/provider/semantic-tokens.lua b/script/provider/semantic-tokens.lua index f6acb280..b867359f 100644 --- a/script/provider/semantic-tokens.lua +++ b/script/provider/semantic-tokens.lua @@ -110,6 +110,10 @@ local function refresh() end config.watch(function (uri, key, value, oldValue) + if key == '' then + key = 'Lua.color.mode' + value = config.get(uri, key) + end if key == 'Lua.color.mode' then if value == 'Semantic' or value == 'SemanticEnhanced' then if isEnable and value ~= oldValue then |