From 3814a6dbd3cc1d8b08e8248a90c5eb94d2b2eda3 Mon Sep 17 00:00:00 2001 From: jghauser Date: Sun, 2 Jun 2024 23:20:21 +0200 Subject: [PATCH] fix(config): drop config before re-importing --- lua/papis/config.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/papis/config.lua b/lua/papis/config.lua index 93ef803..c415a16 100644 --- a/lua/papis/config.lua +++ b/lua/papis/config.lua @@ -234,10 +234,8 @@ function M:update(opts) log.info("Papis.nvim configuration not setup, importing values from Papis now") local testing_session = self["enable_modules"]["testing"] local papis_py_conf_new = self:get_papis_py_conf(testing_session) - db:clean_update("config", { id = 1 }, papis_py_conf_new) - -- for k, v in pairs(papis_py_conf_new) do - -- db.config:update({ id = 1 }, { [k] = v }) - -- end + db.config:drop() + db.config:update({ id = 1 }, papis_py_conf_new) end end