Skip to content

Commit 0001954

Browse files
author
jghauser
committed
feat(config): add info msg when Papis config import without changes
1 parent 77f1ca0 commit 0001954

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/papis/config.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,13 @@ function M:compare_papis_py_conf(papis_py_conf_new)
184184
local papis_py_conf_old = db.config:get()[1]
185185
papis_py_conf_old["id"] = nil
186186

187+
local log = require("papis.log")
187188
if not vim.deep_equal(papis_py_conf_new, papis_py_conf_old) then
188189
db.config:drop()
189190
db.config:update({ id = 1 }, papis_py_conf_new)
190-
local log = require("papis.log")
191191
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.")
192194
end
193195
end
194196

0 commit comments

Comments
 (0)