Skip to content

Commit

Permalink
fix(docs): correct @cast for direction
Browse files Browse the repository at this point in the history
  • Loading branch information
cbochs committed Apr 9, 2024
1 parent c5e9787 commit 306eb36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/grapple.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ function Grapple.cycle_tags(direction, opts)
or direction == "previous" and "prev"
or direction

---@cast direction "next" | "prev"
if not vim.tbl_contains({ "next", "prev" }, direction) then
return vim.notify(string.format("invalid direction: %s", direction), vim.log.levels.ERROR)
end
Expand Down

0 comments on commit 306eb36

Please sign in to comment.