2024-11-22 05:27:08 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
2025-01-06 00:15:19 +00:00
|
|
|
}: let
|
2024-11-22 05:27:08 +00:00
|
|
|
cfg = config.marleyos.programs.neovim;
|
2025-01-06 00:15:19 +00:00
|
|
|
in {
|
2025-01-14 05:05:10 +00:00
|
|
|
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
|
2024-11-22 05:27:08 +00:00
|
|
|
|
2025-01-14 05:05:10 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-11-22 05:27:08 +00:00
|
|
|
home.packages = with pkgs; [
|
2025-03-01 22:50:12 +00:00
|
|
|
nvim
|
2024-11-22 05:27:08 +00:00
|
|
|
];
|
2025-01-12 05:20:24 +00:00
|
|
|
|
|
|
|
home.sessionVariables = rec {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
VISUAL = "${EDITOR}";
|
|
|
|
SUDO_EDITOR = "${EDITOR}";
|
|
|
|
};
|
2024-11-22 05:27:08 +00:00
|
|
|
};
|
|
|
|
}
|