summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/diagnostic.lua3
-rw-r--r--script/provider/spell.lua6
2 files changed, 2 insertions, 7 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index a5a1b527..c3822087 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -594,7 +594,8 @@ files.watch(function (ev, uri) ---@async
end)
config.watch(function (uri, key, value, oldValue)
- if key:find 'Lua.diagnostics' then
+ if util.stringStartWith(key, 'Lua.diagnostics')
+ or util.stringStartWith(key, 'Lua.spell') then
if value ~= oldValue then
m.diagnosticsScope(uri)
m.refreshClient()
diff --git a/script/provider/spell.lua b/script/provider/spell.lua
index 3909ddd2..6647bbad 100644
--- a/script/provider/spell.lua
+++ b/script/provider/spell.lua
@@ -50,10 +50,4 @@ function m.initDictionary()
pformatting.updateNonStandardSymbols(config.get(nil, "Lua.runtime.nonstandardSymbol"))
end
-config.watch(function (uri, key, value, oldValue)
- if key == 'Lua.spell.dict' and uri ~= nil then
- diagnostics.refresh(uri)
- end
-end)
-
return m