mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-27 04:59:47 +01:00
23 lines
437 B
Nix
23 lines
437 B
Nix
|
{
|
||
|
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";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
vim.startPlugins = ["nvim-session-manager"];
|
||
|
|
||
|
vim.luaConfigRC.nvim-session-manager = nvim.dag.entryAnywhere ''
|
||
|
require('session_manager').setup({})
|
||
|
'';
|
||
|
};
|
||
|
}
|