@@ -27,7 +27,7 @@ local get_debugline_tag_and_counter = function(display_counter)
27
27
return tag_and_counter
28
28
end
29
29
30
- --- @param fileconfig DebugprintFileTypeConfig
30
+ --- @param fileconfig debugprint.FileTypeConfig
31
31
--- @return function | boolean ?, boolean ?, boolean ?
32
32
local get_display_options = function (fileconfig )
33
33
local display_counter
@@ -54,8 +54,8 @@ local get_display_options = function(fileconfig)
54
54
return display_counter , display_location , display_snippet
55
55
end
56
56
57
- --- @param opts DebugprintFunctionOptionsInternal
58
- --- @param fileconfig DebugprintFileTypeConfig
57
+ --- @param opts debugprint.FunctionOptionsInternal
58
+ --- @param fileconfig debugprint.FileTypeConfig
59
59
--- @return string
60
60
local get_debugline_textcontent = function (opts , fileconfig )
61
61
local current_line_nr = vim .api .nvim_win_get_cursor (0 )[1 ]
@@ -112,8 +112,8 @@ local get_debugline_textcontent = function(opts, fileconfig)
112
112
return line
113
113
end
114
114
115
- --- @param opts DebugprintFunctionOptionsInternal
116
- --- @param fileconfig DebugprintFileTypeConfig
115
+ --- @param opts debugprint.FunctionOptionsInternal
116
+ --- @param fileconfig debugprint.FileTypeConfig
117
117
--- @return string
118
118
local construct_debugprint_line = function (opts , fileconfig )
119
119
local line_to_insert
@@ -142,7 +142,7 @@ local construct_debugprint_line = function(opts, fileconfig)
142
142
return line_to_insert
143
143
end
144
144
145
- --- @param opts DebugprintFunctionOptionsInternal
145
+ --- @param opts debugprint.FunctionOptionsInternal
146
146
--- @return string
147
147
local get_debugprint_line = function (opts )
148
148
local line_to_insert
@@ -164,7 +164,7 @@ local get_debugprint_line = function(opts)
164
164
return line_to_insert
165
165
end
166
166
167
- --- @param opts DebugprintFunctionOptionsInternal
167
+ --- @param opts debugprint.FunctionOptionsInternal
168
168
--- @param keys string
169
169
local add_to_register = function (opts , keys )
170
170
utils_register .set_register (keys )
@@ -190,7 +190,7 @@ local add_to_register = function(opts, keys)
190
190
end
191
191
end
192
192
193
- --- @param opts DebugprintFunctionOptionsInternal
193
+ --- @param opts debugprint.FunctionOptionsInternal
194
194
--- @return nil
195
195
local handle_debugprint_line = function (opts )
196
196
-- Inserting the leading space from the current line effectively acts as a
@@ -244,11 +244,11 @@ local debugprint_insertkeys = function(keys, insert)
244
244
end
245
245
end
246
246
247
- --- @param opts ? DebugprintFunctionOptions
247
+ --- @param opts ? debugprint.FunctionOptions
248
248
--- @return nil
249
249
M .debugprint = function (opts )
250
250
opts = require (" debugprint.options" ).get_and_validate_function_opts (opts )
251
- --- @cast opts DebugprintFunctionOptionsInternal
251
+ --- @cast opts debugprint.FunctionOptionsInternal
252
252
253
253
opts .register = require (" debugprint.utils.register" ).register_named ()
254
254
@@ -294,7 +294,7 @@ M.debugprint = function(opts)
294
294
end
295
295
end
296
296
297
- --- @param opts DebugprintCommandOpts
297
+ --- @param opts debugprint.CommandOpts
298
298
--- @return nil
299
299
M .deleteprints = function (opts )
300
300
if global_opts .print_tag == " " then
@@ -343,7 +343,7 @@ M.deleteprints = function(opts)
343
343
end
344
344
end
345
345
346
- --- @param opts DebugprintCommandOpts
346
+ --- @param opts debugprint.CommandOpts
347
347
--- @return nil
348
348
M .toggle_comment_debugprints = function (opts )
349
349
if global_opts .print_tag == " " then
@@ -384,7 +384,7 @@ M.toggle_comment_debugprints = function(opts)
384
384
end
385
385
end
386
386
387
- --- @param opts ? DebugprintGlobalOptions
387
+ --- @param opts ? debugprint.GlobalOptions
388
388
--- @return nil
389
389
M .setup = function (opts )
390
390
global_opts =
@@ -407,12 +407,12 @@ M.setup = function(opts)
407
407
end
408
408
end
409
409
410
- --- @return DebugprintGlobalOptions
410
+ --- @return debugprint.GlobalOptions
411
411
M ._get_global_opts = function ()
412
412
return global_opts
413
413
end
414
414
415
- --- @param filetypes DebugprintFileTypeConfigOrDynamic []
415
+ --- @param filetypes debugprint.FileTypeConfigOrDynamic []
416
416
--- @return nil
417
417
M .add_custom_filetypes = function (filetypes )
418
418
vim .validate ({
0 commit comments