summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-07 19:10:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-07 19:10:51 +0800
commit8d6d7b1a8c4474f3331d6445031c1a4bad267e06 (patch)
tree90b627e65366e3ae423cc748566e14dc395009fa /script/provider/provider.lua
parent2acaf8a90b8a0b061711b09f830515ac3861cfd2 (diff)
downloadlua-language-server-8d6d7b1a8c4474f3331d6445031c1a4bad267e06.zip
cleanup
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 16710ff3..c3a1113a 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -902,3 +902,13 @@ do
end
end)
end
+
+config.watch(function (key, value)
+ if key == 'Lua.window.statusBar' then
+ if value then
+ proto.notify('$/status/show')
+ else
+ proto.notify('$/status/hide')
+ end
+ end
+end)