mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-20 02:41:17 +00:00
utility/auto-save: init
This commit is contained in:
parent
0fc84ed868
commit
d00c7d6afb
5 changed files with 41 additions and 0 deletions
16
modules/plugins/utility/auto-save/config.nix
Normal file
16
modules/plugins/utility/auto-save/config.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue