feat: apply new module format to session plugins

This commit is contained in:
NotAShelf 2023-02-27 22:28:48 +03:00
parent cbf1490308
commit f081bb916f
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 21 additions and 5 deletions

View file

@ -1,5 +1,5 @@
_: {
imports = [
./nvim-session-manager.nix
./nvim-session-manager
];
}

View file

@ -8,10 +8,6 @@ with lib;
with builtins; let
cfg = config.vim.session.nvim-session-manager;
in {
options.vim.session.nvim-session-manager = {
enable = mkEnableOption "Enable nvim-session-manager";
};
config = mkIf cfg.enable {
vim.startPlugins = ["nvim-session-manager"];

View file

@ -0,0 +1,6 @@
_: {
imports = [
./nvim-session-manager.nix
./config.nix
];
}

View file

@ -0,0 +1,14 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.session.nvim-session-manager;
in {
options.vim.session.nvim-session-manager = {
enable = mkEnableOption "Enable nvim-session-manager";
};
}