summaryrefslogtreecommitdiff
path: root/mac/.config/yazi/plugins/git.yazi/types.lua
blob: 993684958baf2859a13424bf2dcb8801ee0d705e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---@class State
---@field dirs table<string, string|CODES> Mapping between a directory and its corresponding repository
---@field repos table<string, Changes> Mapping between a repository and the status of each of its files

---@class Options
---@field order number The order in which the status is displayed
---@field renamed boolean Whether to include renamed files in the status (or treat them as modified)

-- TODO: move this to `types.yazi` once it's get stable
---@alias UnstableFetcher fun(self: unknown, job: { files: File[] }): boolean, Error?

---@alias Changes table<string, CODES>