summaryrefslogtreecommitdiff
path: root/script/provider/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-25 21:38:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-25 21:38:57 +0800
commit5ec8ad22d27051507c55d49d6144f08132976215 (patch)
tree75c843f738c0283eb19516293f857d29560d9b3c /script/provider/completion.lua
parent24f4dfa889cc66bd05223e5d8d36fa19865c772b (diff)
downloadlua-language-server-5ec8ad22d27051507c55d49d6144f08132976215.zip
cleanup
Diffstat (limited to 'script/provider/completion.lua')
-rw-r--r--script/provider/completion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/completion.lua b/script/provider/completion.lua
index ec31858a..8e529e95 100644
--- a/script/provider/completion.lua
+++ b/script/provider/completion.lua
@@ -13,7 +13,7 @@ local function allWords()
list[#list+1] = c
mark[c] = true
end
- local postfix = config.get 'Lua.completion.postfix'
+ local postfix = config.get(nil, 'Lua.completion.postfix')
if postfix ~= '' and not mark[postfix] then
list[#list+1] = postfix
mark[postfix] = true
@@ -76,7 +76,7 @@ config.watch(function (key, value)
end
end
if key == 'Lua.completion.postfix' then
- if config.get 'Lua.completion.enable' then
+ if config.get(nil, 'Lua.completion.enable') then
disable()
enable()
end