2024-11-21 21:27:08 -08:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
2025-01-05 16:15:19 -08:00
|
|
|
}: let
|
2024-11-21 21:27:08 -08:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
|
|
|
cfg = config.marleyos.programs.neovim;
|
2025-01-05 16:15:19 -08:00
|
|
|
in {
|
2024-11-21 21:27:08 -08:00
|
|
|
options.marleyos.programs.neovim.enable = mkEnableOption "neovim";
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
2025-01-05 16:15:19 -08:00
|
|
|
nvim-pkg
|
2024-11-21 21:27:08 -08:00
|
|
|
];
|
2025-01-11 21:20:24 -08:00
|
|
|
|
|
|
|
home.sessionVariables = rec {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
VISUAL = "${EDITOR}";
|
|
|
|
SUDO_EDITOR = "${EDITOR}";
|
|
|
|
};
|
2024-11-21 21:27:08 -08:00
|
|
|
};
|
|
|
|
}
|