40 lines
929 B
Nix
40 lines
929 B
Nix
{ helpers, ... }:
|
|
let
|
|
inherit (helpers) mkRaw;
|
|
in
|
|
{
|
|
plugins = {
|
|
undotree = {
|
|
enable = true;
|
|
settings = {
|
|
CursorLine = true;
|
|
DiffAutoOpen = true;
|
|
DiffCommand = "diff";
|
|
DiffpanelHeight = 10;
|
|
HelpLine = true;
|
|
HighlightChangedText = true;
|
|
HighlightChangedWithSign = true;
|
|
HighlightSyntaxAdd = "DiffAdd";
|
|
HighlightSyntaxChange = "DiffChange";
|
|
HighlightSyntaxDel = "DiffDelete";
|
|
RelativeTimestamp = true;
|
|
SetFocusWhenToggle = true;
|
|
ShortIndicators = false;
|
|
SplitWidth = 40;
|
|
TreeNodeShape = "*";
|
|
TreeReturnShape = "\\";
|
|
TreeSplitShape = "/";
|
|
TreeVertShape = "|";
|
|
WindowLayout = 4;
|
|
};
|
|
};
|
|
};
|
|
keymaps = [
|
|
{
|
|
mode = "n";
|
|
key = "<leader>u";
|
|
action = mkRaw "vim.cmd.UndotreeToggle";
|
|
options.desc = "UndoTreeToggle";
|
|
}
|
|
];
|
|
}
|