mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 00:48:58 +02:00
* 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>
34 lines
718 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|