plugins/telescope/extensions/undo: deprecate option diff_context_lines

This commit is contained in:
Gaetan Lepage 2024-07-10 10:21:37 +02:00
parent c029f1745e
commit 0d95fc6888
2 changed files with 7 additions and 5 deletions

View file

@ -77,9 +77,11 @@ telescopeHelpers.mkExtension {
the side-by-side view even if this is set to false. the side-by-side view even if this is set to false.
''; '';
diff_context_lines = helpers.defaultNullOpts.mkStrLuaOr types.ints.unsigned "vim.o.scrolloff" '' vim_diff_opts = {
Defaults to the scrolloff. ctxlen = helpers.defaultNullOpts.mkStrLuaOr types.ints.unsigned "vim.o.scrolloff" ''
''; Defaults to the scrolloff.
'';
};
entry_format = helpers.defaultNullOpts.mkStr "state #$ID, $STAT, $TIME" '' entry_format = helpers.defaultNullOpts.mkStr "state #$ID, $STAT, $TIME" ''
The format to show on telescope for the different versions of the file. The format to show on telescope for the different versions of the file.
@ -116,7 +118,7 @@ telescopeHelpers.mkExtension {
"echo '$DIFF' | delta" "echo '$DIFF' | delta"
]; ];
side_by_side = true; side_by_side = true;
diff_context_lines = 8; vim_diff_opts.ctxlen = 8;
entry_format = "state #$ID"; entry_format = "state #$ID";
time_format = "!%Y-%m-%dT%TZ"; time_format = "!%Y-%m-%dT%TZ";
mappings = { mappings = {

View file

@ -21,7 +21,7 @@
"echo '$DIFF' | delta" "echo '$DIFF' | delta"
]; ];
side_by_side = true; side_by_side = true;
diff_context_lines = 8; vim_diff_opts.ctxlen = 8;
entry_format = "state #$ID"; entry_format = "state #$ID";
time_format = "!%Y-%m-%dT%TZ"; time_format = "!%Y-%m-%dT%TZ";
mappings = { mappings = {