File tree 5 files changed +8
-9
lines changed
5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ local log = require("papis.log")
9
9
10
10
local has_cmp , cmp = pcall (require , " cmp" )
11
11
if not has_cmp then
12
- vim .notify (" The plugin nvim-cmp wasn't found but the respective papis.nvim module is configured to be loaded." ,
13
- vim .log .levels .ERROR )
12
+ log .error (" The plugin nvim-cmp wasn't found but the respective papis.nvim module is configured to be loaded." )
14
13
return nil
15
14
end
16
15
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function M.start()
63
63
-- set up db
64
64
local db = require (" papis.sqlite-wrapper" )
65
65
if not db then
66
- vim . notify (" Requiring `sqlite-wrapper.lua` failed. Aborting..." , vim . log . levels . ERROR )
66
+ log . error (" Requiring `sqlite-wrapper.lua` failed. Aborting..." )
67
67
return nil
68
68
end
69
69
db :init ()
@@ -76,7 +76,7 @@ function M.start()
76
76
-- require what's necessary within `M.start()` instead of globally to allow lazy-loading
77
77
local data = require (" papis.data" )
78
78
if not data then
79
- vim . notify (" Requiring `data.lua` failed. Aborting..." , vim . log . levels . ERROR )
79
+ log . error (" Requiring `data.lua` failed. Aborting..." )
80
80
return nil
81
81
end
82
82
Original file line number Diff line number Diff line change 7
7
local log = require (" papis.log" )
8
8
local has_telescope , telescope = pcall (require , " telescope" )
9
9
if not has_telescope then
10
- vim .notify (" The plugin telescope.nvim wasn't found but the search module is enabled and requires it." ,
11
- vim .log .levels .ERROR )
10
+ log .error (" The plugin telescope.nvim wasn't found but the search module is enabled and requires it." )
12
11
return nil
13
12
end
14
13
local entry_display = require (" telescope.pickers.entry_display" )
Original file line number Diff line number Diff line change 5
5
-- Wrapper around sqlite.lua setting up the main database and associated methods.
6
6
--
7
7
8
+ local log = require (" papis.log" )
9
+
8
10
local has_sqlite , sqlite = pcall (require , " sqlite" )
9
11
if not has_sqlite then
10
- vim .notify (" The dependency 'sqlite.nvim' is missing. Ensure that it is installed to run papis.nvim" ,
11
- vim .log .levels .ERROR )
12
+ log .error (" The dependency 'sqlite.nvim' is missing. Ensure that it is installed to run papis.nvim" )
12
13
return nil
13
14
end
14
15
local sqlite_utils = require " sqlite.utils"
Original file line number Diff line number Diff line change 133
133
function M :do_open_text_file (papis_id , type )
134
134
local db = require (" papis.sqlite-wrapper" )
135
135
if not db then
136
- vim . notify (" Sqlite-wrapper has not been initialised properly. Aborting..." , vim . log . levels . ERROR )
136
+ log . error (" Sqlite-wrapper has not been initialised properly. Aborting..." )
137
137
return nil
138
138
end
139
139
log .debug (" Opening a text file" )
You can’t perform that action at this time.
0 commit comments