File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ local M = {}
2
+
3
+ M .check = function ()
4
+ vim .health .start (" debugprint.nvim report" )
5
+
6
+ local global_opts = require (" debugprint" ).get_global_opts ()
7
+
8
+ if global_opts ~= nil then
9
+ vim .health .ok (
10
+ " debugprint is started with opts " .. vim .inspect (global_opts )
11
+ )
12
+ else
13
+ vim .health .warn (" debugprint is not yet started" )
14
+ end
15
+ end
16
+
17
+ return M
Original file line number Diff line number Diff line change @@ -419,6 +419,11 @@ M.setup = function(opts)
419
419
require (" debugprint.setup" ).map_keys_and_commands (global_opts )
420
420
end
421
421
422
+ --- @return DebugprintGlobalOptions
423
+ M .get_global_opts = function ()
424
+ return global_opts
425
+ end
426
+
422
427
--- @param filetypes DebugprintFileTypeConfig[]
423
428
--- @return nil
424
429
M .add_custom_filetypes = function (filetypes )
You can’t perform that action at this time.
0 commit comments