diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-03-02 13:16:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-03-02 13:16:57 +0800 |
commit | c76c287ae0944080c9671a3d87697f8ea6a25caa (patch) | |
tree | 31d170c7cdad77cabcd6e180b0fa4425c0d3df72 /script/service.lua | |
parent | 841e81a182f4de4a062aca30a664cca9b2c4e380 (diff) | |
download | lua-language-server-c76c287ae0944080c9671a3d87697f8ea6a25caa.zip |
暂存
Diffstat (limited to 'script/service.lua')
-rw-r--r-- | script/service.lua | 5 |
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 |