init
This commit is contained in:
commit
1e2ca5a6fc
71 changed files with 3330 additions and 0 deletions
40
config/plugins/undotree.nix
Normal file
40
config/plugins/undotree.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ 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";
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue