diff --git a/lua/papis/init.lua b/lua/papis/init.lua index 85b47b3..711280d 100644 --- a/lua/papis/init.lua +++ b/lua/papis/init.lua @@ -81,11 +81,12 @@ function M.start() end -- setup commands + log.debug("Setting up commands") require("papis.commands").setup() -- setup enabled modules for module_name, _ in pairs(config.enable_modules) do - log.trace(module_name .. " is enabled") + log.debug(module_name .. " is enabled") local has_module, module = pcall(require, "papis." .. module_name) if has_module then if module.setup then @@ -95,6 +96,7 @@ function M.start() end -- setup keymaps + log.debug("Setting up keymaps") require("papis.keymaps"):setup() -- check if other neovim instances has file watchers @@ -102,13 +104,14 @@ function M.start() if not does_pid_exist(db.state:get_fw_running()) then -- setup file watchers because no other neovim instance has them if config.enable_fs_watcher then + log.debug("Setting up file watchers") require("papis.fs-watcher"):init() end -- only synchronise the data table if it's not empty -- (in that case, we tell users to manually do it because it takes a while) if not db.data:empty() then - log.debug("Synchronising the database") + log.debug("Setting up/syncrhonising the database") data:sync_db() end else