nixos/modules/home/shell/neovim.nix

20 lines
327 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}: let
cfg = config.myConfig.shell.neovim;
in {
options.myConfig.shell.neovim = {
enable = lib.mkEnableOption "neovim";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [neovim];
home.sessionVariables = {
EDITOR = "${pkgs.neovim}/bin/nvim";
};
};
}