File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ function Grapple.cycle_tags(direction, opts)
260
260
or direction
261
261
262
262
--- @cast direction " next" | " prev"
263
+
263
264
if not vim .tbl_contains ({ " next" , " prev" }, direction ) then
264
265
return vim .notify (string.format (" invalid direction: %s" , direction ), vim .log .levels .ERROR )
265
266
end
@@ -423,7 +424,7 @@ function Grapple.unload(opts)
423
424
424
425
opts = opts or {}
425
426
426
- local err = app :unload (opts )
427
+ local err = app :unload ({ scope = opts . scope , id = opts . id } )
427
428
if err then
428
429
if opts .notify then
429
430
vim .notify (err , vim .log .levels .ERROR )
@@ -446,7 +447,7 @@ function Grapple.reset(opts)
446
447
447
448
opts = opts or {}
448
449
449
- local err = app :reset (opts )
450
+ local err = app :reset ({ scope = opts . scope , id = opts . id } )
450
451
if err then
451
452
if opts .notify then
452
453
vim .notify (err , vim .log .levels .ERROR )
@@ -472,6 +473,7 @@ function Grapple.prune(opts)
472
473
local pruned_ids , err = app .tag_manager :prune (opts .limit or app .settings .prune )
473
474
if not pruned_ids then
474
475
if opts .notify then
476
+ --- @diagnostic disable-next-line : param-type-mismatch
475
477
vim .notify (err , vim .log .levels .ERROR )
476
478
end
477
479
return nil , err
You can’t perform that action at this time.
0 commit comments