2022-09-18 11:19:23 +01:00
|
|
|
{
|
2023-02-20 11:42:13 +01:00
|
|
|
lib,
|
2024-02-09 14:21:22 +01:00
|
|
|
config,
|
|
|
|
helpers,
|
2023-11-06 15:04:08 +01:00
|
|
|
pkgs,
|
2023-02-20 11:42:13 +01:00
|
|
|
...
|
2024-02-09 14:21:22 +01:00
|
|
|
}:
|
2024-01-08 14:42:01 +01:00
|
|
|
with lib;
|
2024-02-09 14:21:22 +01:00
|
|
|
with helpers.vim-plugin;
|
|
|
|
mkVimPlugin config {
|
2024-01-08 14:42:01 +01:00
|
|
|
name = "undotree";
|
2024-02-15 09:51:43 +01:00
|
|
|
defaultPackage = pkgs.vimPlugins.undotree;
|
2024-01-08 14:42:01 +01:00
|
|
|
globalPrefix = "undotree_";
|
2024-02-19 10:19:39 +01:00
|
|
|
deprecateExtraConfig = true;
|
2024-01-08 14:42:01 +01:00
|
|
|
|
2024-02-14 10:35:49 +01:00
|
|
|
# TODO introduced 2024-02-22: remove 2024-04-22
|
|
|
|
imports = let
|
|
|
|
basePluginPath = ["plugins" "undotree"];
|
|
|
|
in
|
|
|
|
mapAttrsToList
|
|
|
|
(
|
|
|
|
old: new:
|
|
|
|
mkRenamedOptionModule
|
|
|
|
(basePluginPath ++ [old])
|
|
|
|
(basePluginPath ++ ["settings" new])
|
|
|
|
)
|
|
|
|
{
|
|
|
|
windowLayout = "WindowLayout";
|
|
|
|
shortIndicators = "ShortIndicators";
|
|
|
|
windowWidth = "WindowWidth";
|
|
|
|
diffHeight = "DiffHeight";
|
|
|
|
autoOpenDiff = "AutoOpenDiff";
|
|
|
|
focusOnToggle = "FocusOnToggle";
|
|
|
|
treeNodeShape = "TreeNodeShape";
|
|
|
|
diffCommand = "DiffCommand";
|
|
|
|
relativeTimestamp = "RelativeTimestamp";
|
|
|
|
highlightChangedText = "HighlightChangedText";
|
|
|
|
highlightChangesWithSign = "HighlightChangesWithSign";
|
|
|
|
highlightSyntaxAdd = "HighlightSyntaxAdd";
|
|
|
|
highlightSyntaxChange = "HighlightSyntaxChange";
|
|
|
|
highlightSyntaxDel = "HighlightSyntaxDel";
|
|
|
|
showHelpLine = "ShowHelpLine";
|
|
|
|
showCursorLine = "ShowCursorLine";
|
|
|
|
};
|
|
|
|
|
|
|
|
settingsExample = {
|
|
|
|
WindowLayout = 4;
|
|
|
|
ShortIndicators = false;
|
|
|
|
DiffpanelHeight = 10;
|
|
|
|
DiffAutoOpen = true;
|
|
|
|
SetFocusWhenToggle = true;
|
|
|
|
SplitWidth = 40;
|
|
|
|
TreeNodeShape = "*";
|
|
|
|
TreeVertShape = "|";
|
|
|
|
TreeSplitShape = "/";
|
|
|
|
TreeReturnShape = "\\";
|
|
|
|
DiffCommand = "diff";
|
|
|
|
RelativeTimestamp = true;
|
|
|
|
HighlightChangedText = true;
|
|
|
|
HighlightChangedWithSign = true;
|
|
|
|
HighlightSyntaxAdd = "DiffAdd";
|
|
|
|
HighlightSyntaxChange = "DiffChange";
|
|
|
|
HighlightSyntaxDel = "DiffDelete";
|
|
|
|
HelpLine = true;
|
|
|
|
CursorLine = true;
|
2021-02-10 15:09:31 +00:00
|
|
|
};
|
2024-01-08 14:42:01 +01:00
|
|
|
}
|