feat(api): add lua C bindings for xdiff (#14536)

* feat(api): add lua C bindings for xdiff

* chore: opt.hunk_lines -> opt.result_type

opt.on_hunk now takes precedence over opt.result_type

* chore: fix indents

Fix indents

* chore: change how priv is managed

Assign priv NULL and unconditionally apply XFREE_CLEAR to it when
finished.
This commit is contained in:
Lewis Russell
2021-08-22 11:22:04 +01:00
committed by GitHub
parent 8331cd13c4
commit 3d3c0c669d
5 changed files with 530 additions and 0 deletions

12
src/nvim/lua/xdiff.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef NVIM_LUA_XDIFF_H
#define NVIM_LUA_XDIFF_H
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "lua/xdiff.h.generated.h"
#endif
#endif // NVIM_LUA_XDIFF_H