marleyos/modules/home/programs/tui/neovim/default.nix

23 lines
377 B
Nix
Raw Normal View History

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 {
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
2024-11-22 05:27:08 +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
];
home.sessionVariables = rec {
EDITOR = "nvim";
VISUAL = "${EDITOR}";
SUDO_EDITOR = "${EDITOR}";
};
2024-11-22 05:27:08 +00:00
};
}