mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-15 00:58:37 +00:00
17 lines
523 B
Nix
17 lines
523 B
Nix
{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";
|
|
};
|
|
};
|
|
};
|
|
}
|