summaryrefslogtreecommitdiff
path: root/script/provider/semantic-tokens.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-07 11:28:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-07 11:28:39 +0800
commit3a6a45486dd8bf5ee3548c631ebf8a5da711fb7a (patch)
treea93d6259ad2dd90dc05a21a089b8a494937c7682 /script/provider/semantic-tokens.lua
parent336c0b712babf2f5a0dec2c2f27963d5e568eff2 (diff)
downloadlua-language-server-3a6a45486dd8bf5ee3548c631ebf8a5da711fb7a.zip
cleanup
Diffstat (limited to 'script/provider/semantic-tokens.lua')
-rw-r--r--script/provider/semantic-tokens.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/script/provider/semantic-tokens.lua b/script/provider/semantic-tokens.lua
index f9f774b1..942bd046 100644
--- a/script/provider/semantic-tokens.lua
+++ b/script/provider/semantic-tokens.lua
@@ -64,11 +64,14 @@ local function enable()
return
end
if item.title == lang.script.WINDOW_APPLY_SETTING then
- client.setConfig('editor.semanticHighlighting.enabled'
- , 'set'
- , true
- , true
- )
+ client.setConfig {
+ {
+ key = 'editor.semanticHighlighting.enabled',
+ action = 'set',
+ value = true,
+ isGlobal = true,
+ }
+ }
end
if item.title == lang.script.WINDOW_DONT_SHOW_AGAIN then
dontShowAgain = true