nix-community.nixvim/tests/test-sources/plugins/telescope/undo.nix
Haseeb Majid 520a59668d
plugins/telescope.extensions.undo: init + (#654)
* new plugin

* add content

* add content

* Update plugins/telescope/undo.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* Update plugins/telescope/undo.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* add test

* Update plugins/telescope/undo.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* fix per pr comments

* fix per pr comments

* fix per pr comments

---------

Co-authored-by: Haseeb Majid <haseeb.majid@imaginecurve.com>
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2023-10-25 23:08:23 +02:00

34 lines
718 B
Nix

{
empty = {
plugins.telescope.enable = true;
};
example = {
plugins.telescope = {
enable = true;
extensions.undo = {
enable = true;
useDelta = true;
useCustomCommand = ["bash" "-c" "echo '$DIFF' | delta"];
sideBySide = true;
diffContextLines = 8;
entryFormat = "state #$ID";
timeFormat = "!%Y-%m-%dT%TZ";
mappings = {
i = {
"<cr>" = "yank_additions";
"<s-cr>" = "yank_deletions";
"<c-cr>" = "restore";
};
n = {
"y" = "yank_additions";
"Y" = "yank_deletions";
"u" = "restore";
};
};
};
};
};
}