summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/files.lua4
-rw-r--r--script/provider/provider.lua2
2 files changed, 1 insertions, 5 deletions
diff --git a/script/files.lua b/script/files.lua
index 2b0e84d4..ecee9098 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -624,10 +624,6 @@ end
--- 获取文件关联
function m.getAssoc()
- if m.assocVersion == config.get(nil, 'version') then
- return m.assocMatcher
- end
- m.assocVersion = config.get(nil, 'version')
local patt = {}
for k, v in pairs(config.get(nil, 'files.associations')) do
if v == 'lua' then
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 23dd6e11..6b7a56b5 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -252,7 +252,7 @@ m.register 'textDocument/hover' {
abortByFileUpdate = true,
---@async
function (params)
- if not config.get('Lua.hover.enable') then
+ if not config.get(nil, 'Lua.hover.enable') then
return
end
local doc = params.textDocument