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

22 lines
381 B
Nix

{
lib,
config,
pkgs,
...
}: let
cfg = config.marleyos.programs.neovim;
in {
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
nvim-pkg
];
home.sessionVariables = rec {
EDITOR = "nvim";
VISUAL = "${EDITOR}";
SUDO_EDITOR = "${EDITOR}";
};
};
}