mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
35 lines
718 B
Nix
35 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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|