Fix onetime configuration handling
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user