diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-06 21:18:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-06 21:18:58 +0800 |
commit | 6f76cb75f205bc2343ac0155abbcb2f23a764d10 (patch) | |
tree | 8e65688e0a130212b18ebadc386b3356ebe70fa3 /script/core | |
parent | 1cb6288aa6f5fe4c79d96bdf82890b637a068784 (diff) | |
download | lua-language-server-6f76cb75f205bc2343ac0155abbcb2f23a764d10.zip |
update semantic-tokens
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/semantic-tokens.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/semantic-tokens.lua b/script/core/semantic-tokens.lua index 12848d2b..4c45c429 100644 --- a/script/core/semantic-tokens.lua +++ b/script/core/semantic-tokens.lua @@ -367,6 +367,9 @@ end ---@async return function (uri, start, finish) + if config.get(uri, 'Lua.color.mode') == 'Grammar' then + return nil + end local state = files.getState(uri) if not state then return nil |