mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
feat: apply new module format to session plugins
This commit is contained in:
parent
cbf1490308
commit
f081bb916f
4 changed files with 21 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./nvim-session-manager.nix
|
||||
./nvim-session-manager
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
|
6
modules/session/nvim-session-manager/default.nix
Normal file
6
modules/session/nvim-session-manager/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./nvim-session-manager.nix
|
||||
./config.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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue