fix: config.setup deprecation checks

main
olimorris 2023-02-23 10:41:21 +00:00
parent aa3fdbc8a5
commit 029ba65f39
1 changed files with 68 additions and 66 deletions

View File

@ -37,6 +37,7 @@ function M.setup(opts)
M.options = vim.tbl_deep_extend("force", {}, defaults, opts or {})
vim.fn.mkdir(M.options.save_dir, "p")
if opts then
if opts.before_source then
require("persisted.deprecate").write(
"----------\n",
@ -106,5 +107,6 @@ function M.setup(opts)
)
end
end
end
return M