We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77f1ca0 commit 0001954Copy full SHA for 0001954
lua/papis/config.lua
@@ -184,11 +184,13 @@ function M:compare_papis_py_conf(papis_py_conf_new)
184
local papis_py_conf_old = db.config:get()[1]
185
papis_py_conf_old["id"] = nil
186
187
+ local log = require("papis.log")
188
if not vim.deep_equal(papis_py_conf_new, papis_py_conf_old) then
189
db.config:drop()
190
db.config:update({ id = 1 }, papis_py_conf_new)
- local log = require("papis.log")
191
log.info("Configuration has changed. Please close all instances of neovim and run `:PapisReInitData`")
192
+ else
193
+ log.info("Configuration hasn't changed. No action required.")
194
end
195
196
0 commit comments