Skip to content

Commit

Permalink
docs(types): reference hooks instead of callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Dec 30, 2024
1 parent a5149d5 commit b17a3e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/flatten/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ local Flatten = {}
---@field guest_cwd string
---@field data any

---Passed into the pre_open callback
---Passed into the pre_open hook
---@class Flatten.PreOpenContext
---@field data any

---Passed into the post_open callback
---Passed into the post_open hook
---@class Flatten.PostOpenContext
---@field bufnr Flatten.BufferId
---@field winnr Flatten.WindowId
Expand All @@ -106,12 +106,12 @@ local Flatten = {}
---@field is_diff boolean
---@field data any

---Passed into the block_end callback
---Passed into the block_end hook
---@class Flatten.BlockEndContext
---@field filetype string
---@field data any

---Passed into the no_files callback from the guest (cb is run on the host)
---Passed into the no_files hook from the guest (cb is run on the host)
---@class Flatten.NoFilesArgs
---@field argv string[]

Expand Down

0 comments on commit b17a3e6

Please sign in to comment.