refactor(lua): use a keyset for vim.diff opts parsing

This commit is contained in:
bfredl
2024-02-11 19:13:38 +01:00
parent 0353dd3029
commit 1a3a8d903e
4 changed files with 93 additions and 114 deletions

View File

@@ -297,3 +297,17 @@ error('Cannot require a meta file')
--- @field end_row? integer
--- @field start_vcol? integer
--- @field end_vcol? integer
--- @class vim.api.keyset.xdl_diff
--- @field on_hunk? function
--- @field result_type? string
--- @field algorithm? string
--- @field ctxlen? integer
--- @field interhunkctxlen? integer
--- @field linematch? any
--- @field ignore_whitespace? boolean
--- @field ignore_whitespace_change? boolean
--- @field ignore_whitespace_change_at_eol? boolean
--- @field ignore_cr_at_eol? boolean
--- @field ignore_blank_lines? boolean
--- @field indent_heuristic? boolean