-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinit.lua
More file actions
26 lines (24 loc) · 1.02 KB
/
Copy pathinit.lua
File metadata and controls
26 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---@class diffs.PublicApi
---@field attach fun(bufnr?: integer)
---@field refresh fun(bufnr?: integer)
---@field review_files fun(bufnr?: integer): diffs.ReviewFile[]?
---@field review_current fun(bufnr?: integer): { index: integer, count: integer, file: diffs.ReviewFile }?
---@field review_goto fun(target: string, bufnr?: integer): boolean
---@field review_next_file fun()
---@field review_prev_file fun()
---@field review_toggle_layout fun(opts?: diffs.ReviewToggleLayoutOpts): integer?
---@field select_review_file fun(bufnr?: integer)
local commands = require('diffs.commands')
local runtime = require('diffs.runtime')
---@type diffs.PublicApi
return {
attach = runtime.attach,
refresh = runtime.refresh,
review_files = commands.review_files,
review_current = commands.review_current,
review_goto = commands.review_goto,
review_next_file = commands.review_next_file,
review_prev_file = commands.review_prev_file,
review_toggle_layout = commands.review_toggle_layout,
select_review_file = commands.select_review_file,
}