Skip to content

Commit d2f793a

Browse files
committed
refactor: Remove 'WARNING' from messages
1 parent bf82426 commit d2f793a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

lua/debugprint/init.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ end
299299
M.deleteprints = function(opts)
300300
if global_opts.print_tag == "" then
301301
vim.notify(
302-
"WARNING: no print_tag set, cannot delete lines.",
302+
"No print_tag set, cannot delete lines.",
303303
vim.log.levels.WARN
304304
)
305305

@@ -348,7 +348,7 @@ end
348348
M.toggle_comment_debugprints = function(opts)
349349
if global_opts.print_tag == "" then
350350
vim.notify(
351-
"WARNING: no print_tag set, cannot comment-toggle lines.",
351+
"No print_tag set, cannot comment-toggle lines.",
352352
vim.log.levels.WARN
353353
)
354354

@@ -425,7 +425,7 @@ end
425425

426426
if vim.fn.has("nvim-0.10.0") ~= 1 then
427427
vim.notify_once(
428-
"WARNING: debugprint.nvim is only compatible with NeoVim 0.10+",
428+
"debugprint.nvim is only compatible with NeoVim 0.10+",
429429
vim.log.levels.WARN
430430
)
431431

tests/debugprint.lua

+2-5
Original file line numberDiff line numberDiff line change
@@ -2324,10 +2324,7 @@ describe("check for variations of printtag/display_counter", function()
23242324
feedkeys("g?p")
23252325
vim.cmd("DeleteDebugPrints")
23262326

2327-
assert.equals(
2328-
notify_message,
2329-
"WARNING: no print_tag set, cannot delete lines."
2330-
)
2327+
assert.equals(notify_message, "No print_tag set, cannot delete lines.")
23312328

23322329
check_lines({
23332330
"function x()",
@@ -2353,7 +2350,7 @@ describe("check for variations of printtag/display_counter", function()
23532350

23542351
assert.equals(
23552352
notify_message,
2356-
"WARNING: no print_tag set, cannot comment-toggle lines."
2353+
"No print_tag set, cannot comment-toggle lines."
23572354
)
23582355

23592356
check_lines({

0 commit comments

Comments
 (0)