mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-02 17:15:55 +00:00
modules/visuals: add highlight-undo
a plugin for highlighting undo/redo targets
This commit is contained in:
parent
d7cf84c514
commit
c353329620
5 changed files with 70 additions and 1 deletions
|
|
@ -103,5 +103,40 @@ in {
|
|||
defaultText = literalExpression "config.vim.treesitter.enable";
|
||||
};
|
||||
};
|
||||
|
||||
highlight-undo = {
|
||||
enable = mkEnableOption "highlight undo [highlight-undo]";
|
||||
|
||||
highlightForCount = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Enable support for highlighting when a `<count>` is provided before the key
|
||||
If set to false it will only highlight when the mapping is not prefixed with a `<count>`
|
||||
'';
|
||||
};
|
||||
|
||||
duration = mkOption {
|
||||
type = types.int;
|
||||
description = "Duration of highlight";
|
||||
default = 200;
|
||||
};
|
||||
|
||||
undo = {
|
||||
hlGroup = mkOption {
|
||||
type = types.str;
|
||||
description = "Highlight group for undo";
|
||||
default = "HighlightUndo";
|
||||
};
|
||||
};
|
||||
|
||||
redo = {
|
||||
hlGroup = mkOption {
|
||||
type = types.str;
|
||||
description = "Highlight group for redo";
|
||||
default = "HighlightUndo";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue