mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-20 19:01:22 +00:00
utility/auto-save: init
This commit is contained in:
parent
0fc84ed868
commit
d00c7d6afb
5 changed files with 41 additions and 0 deletions
17
modules/plugins/utility/auto-save/auto-save.nix
Normal file
17
modules/plugins/utility/auto-save/auto-save.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) int;
|
||||
in {
|
||||
options.vim.auto-save = {
|
||||
enable = mkEnableOption "auto-save";
|
||||
setupOpts = mkPluginSetupOption "auto-save" {
|
||||
debounce_delay = mkOption {
|
||||
type = int;
|
||||
# plugin default is 135, adding an option to setupOpts for example
|
||||
default = 100;
|
||||
description = "saves the file at most every `debounce_delay` milliseconds";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue