utility/auto-save: init

This commit is contained in:
Venkatesan Ravi 2025-04-05 02:22:30 +00:00
commit d00c7d6afb
5 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.auto-save;
in {
vim.lazy.plugins."auto-save.nvim" = mkIf cfg.enable {
package = pkgs.vimPlugins.auto-save-nvim;
setupModule = "auto-save";
inherit (cfg) setupOpts;
};
}