aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-04-04 23:59:39 +0100
committerGitHub <noreply@github.com>2023-04-04 23:59:39 +0100
commit9e7426718b678e299f3fd03ef94f81b1e2d01ab0 (patch)
tree52a5825f377f76adb21d83c30d6795f635bc0424 /runtime
parente826d09c18ab8840592b6cdbbcfe3e311a047174 (diff)
downloadrneovim-9e7426718b678e299f3fd03ef94f81b1e2d01ab0.tar.gz
rneovim-9e7426718b678e299f3fd03ef94f81b1e2d01ab0.tar.bz2
rneovim-9e7426718b678e299f3fd03ef94f81b1e2d01ab0.zip
feat(vim.diff): allow passing an integer for linematch
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/lua.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index ba83b18d07..6084a625ba 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -685,9 +685,10 @@ vim.diff({a}, {b}, {opts}) *vim.diff()*
• "unified": (default) String in unified format.
• "indices": Array of hunk locations.
Note: This option is ignored if `on_hunk` is used.
- • `linematch` (boolean): Run linematch on the resulting hunks
- from xdiff. Requires `result_type = indices`, ignored
- otherwise.
+ • `linematch` (boolean|integer): Run linematch on the resulting hunks
+ from xdiff. When integer, only hunks upto this size in
+ lines are run through linematch. Requires `result_type = indices`,
+ ignored otherwise.
• `algorithm` (string):
Diff algorithm to use. Values:
• "myers" the default algorithm