Skip to content

Commit fcca9e8

Browse files
committed
fix(docs): resolve some linting errors
1 parent 306eb36 commit fcca9e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/grapple.lua

+4-2
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ function Grapple.cycle_tags(direction, opts)
260260
or direction
261261

262262
---@cast direction "next" | "prev"
263+
263264
if not vim.tbl_contains({ "next", "prev" }, direction) then
264265
return vim.notify(string.format("invalid direction: %s", direction), vim.log.levels.ERROR)
265266
end
@@ -423,7 +424,7 @@ function Grapple.unload(opts)
423424

424425
opts = opts or {}
425426

426-
local err = app:unload(opts)
427+
local err = app:unload({ scope = opts.scope, id = opts.id })
427428
if err then
428429
if opts.notify then
429430
vim.notify(err, vim.log.levels.ERROR)
@@ -446,7 +447,7 @@ function Grapple.reset(opts)
446447

447448
opts = opts or {}
448449

449-
local err = app:reset(opts)
450+
local err = app:reset({ scope = opts.scope, id = opts.id })
450451
if err then
451452
if opts.notify then
452453
vim.notify(err, vim.log.levels.ERROR)
@@ -472,6 +473,7 @@ function Grapple.prune(opts)
472473
local pruned_ids, err = app.tag_manager:prune(opts.limit or app.settings.prune)
473474
if not pruned_ids then
474475
if opts.notify then
476+
---@diagnostic disable-next-line: param-type-mismatch
475477
vim.notify(err, vim.log.levels.ERROR)
476478
end
477479
return nil, err

0 commit comments

Comments
 (0)