diff --git a/modules/session/default.nix b/modules/session/default.nix index 3a2da67e..b984f72d 100644 --- a/modules/session/default.nix +++ b/modules/session/default.nix @@ -1,5 +1,5 @@ _: { imports = [ - ./nvim-session-manager.nix + ./nvim-session-manager ]; } diff --git a/modules/session/nvim-session-manager.nix b/modules/session/nvim-session-manager/config.nix similarity index 74% rename from modules/session/nvim-session-manager.nix rename to modules/session/nvim-session-manager/config.nix index 29dd21d8..4319b6c1 100644 --- a/modules/session/nvim-session-manager.nix +++ b/modules/session/nvim-session-manager/config.nix @@ -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"]; diff --git a/modules/session/nvim-session-manager/default.nix b/modules/session/nvim-session-manager/default.nix new file mode 100644 index 00000000..607c453c --- /dev/null +++ b/modules/session/nvim-session-manager/default.nix @@ -0,0 +1,6 @@ +_: { + imports = [ + ./nvim-session-manager.nix + ./config.nix + ]; +} diff --git a/modules/session/nvim-session-manager/nvim-session-manager.nix b/modules/session/nvim-session-manager/nvim-session-manager.nix new file mode 100644 index 00000000..af7ca324 --- /dev/null +++ b/modules/session/nvim-session-manager/nvim-session-manager.nix @@ -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"; + }; +}