2024-05-18 20:00:18 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 21:15:16 +02:00
|
|
|
cfg = config.myConfig.shell.neovim;
|
2024-05-18 20:00:18 +02:00
|
|
|
in {
|
2024-05-20 21:15:16 +02:00
|
|
|
options.myConfig.shell.neovim = {
|
|
|
|
enable = lib.mkEnableOption "neovim";
|
2024-05-18 20:00:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [neovim];
|
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "${pkgs.neovim}/bin/nvim";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|