File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,12 @@ function M.start()
81
81
end
82
82
83
83
-- setup commands
84
+ log .debug (" Setting up commands" )
84
85
require (" papis.commands" ).setup ()
85
86
86
87
-- setup enabled modules
87
88
for module_name , _ in pairs (config .enable_modules ) do
88
- log .trace (module_name .. " is enabled" )
89
+ log .debug (module_name .. " is enabled" )
89
90
local has_module , module = pcall (require , " papis." .. module_name )
90
91
if has_module then
91
92
if module .setup then
@@ -95,20 +96,22 @@ function M.start()
95
96
end
96
97
97
98
-- setup keymaps
99
+ log .debug (" Setting up keymaps" )
98
100
require (" papis.keymaps" ):setup ()
99
101
100
102
-- check if other neovim instances has file watchers
101
103
local does_pid_exist = require (" papis.utils" ).does_pid_exist
102
104
if not does_pid_exist (db .state :get_fw_running ()) then
103
105
-- setup file watchers because no other neovim instance has them
104
106
if config .enable_fs_watcher then
107
+ log .debug (" Setting up file watchers" )
105
108
require (" papis.fs-watcher" ):init ()
106
109
end
107
110
108
111
-- only synchronise the data table if it's not empty
109
112
-- (in that case, we tell users to manually do it because it takes a while)
110
113
if not db .data :empty () then
111
- log .debug (" Synchronising the database" )
114
+ log .debug (" Setting up/syncrhonising the database" )
112
115
data :sync_db ()
113
116
end
114
117
else
You can’t perform that action at this time.
0 commit comments