summaryrefslogtreecommitdiff
path: root/script/service.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-03-02 13:16:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-03-02 13:16:57 +0800
commitc76c287ae0944080c9671a3d87697f8ea6a25caa (patch)
tree31d170c7cdad77cabcd6e180b0fa4425c0d3df72 /script/service.lua
parent841e81a182f4de4a062aca30a664cca9b2c4e380 (diff)
downloadlua-language-server-c76c287ae0944080c9671a3d87697f8ea6a25caa.zip
暂存
Diffstat (limited to 'script/service.lua')
-rw-r--r--script/service.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/service.lua b/script/service.lua
index 2d8a3e64..447908a0 100644
--- a/script/service.lua
+++ b/script/service.lua
@@ -773,6 +773,11 @@ function mt:onUpdateConfig(updated, other)
else
capability.completion.disable()
end
+ if newConfig.color.mode == 'Semantic' then
+ capability.semantic.enable()
+ else
+ capability.semantic.disable()
+ end
if not table.equal(oldConfig.plugin, newConfig.plugin) then
plugin.load(self.workspace)
end