Fix onetime configuration handling

This commit is contained in:
hrsh7th
2022-08-20 20:27:16 +09:00
parent 27bc575d1e
commit db261b4e2b
2 changed files with 10 additions and 1 deletions

View File

@@ -74,7 +74,9 @@ end
---@return cmp.ConfigSchema
config.get = function()
local global_config = config.global
if config.onetime and not vim.tbl_isempty(config.onetime) then
-- The config object already has `revision` key.
if #vim.tbl_keys(config.onetime) > 1 then
local onetime_config = config.onetime
return config.cache:ensure({
'get',