summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-08-06 21:00:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-08-06 21:00:43 +0800
commita7a40a5b095f0d7dde928ec14560af1818aa3f5c (patch)
tree9817d71fef5959cdfc3507f56dd2614e384f492d /script/provider/provider.lua
parent011f95c71a96ddb2c15a75b95d42c0fddf6f37cc (diff)
downloadlua-language-server-a7a40a5b095f0d7dde928ec14560af1818aa3f5c.zip
语言设置挪到服务器里
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index af01aaf8..6a4b2406 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1597,6 +1597,18 @@ m.register '$/psi/select' {
end
}
+local function refreshLanguageConfiguration()
+ if not client.getOption('languageConfiguration') then
+ return
+ end
+ proto.notify('$/languageConfiguration', require 'provider.language-configuration')
+end
+
+config.watch(function (uri, key, value)
+ if key == '' then
+ refreshLanguageConfiguration()
+ end
+end)
local function refreshStatusBar()
if not client.getOption('statusBar') then