nix-config/modules/home-manager/coding/neovim/default.nix
Oliver Davies a068e0481f Add an nvim package
Now I can run `nix run .#nvim` to run Neovim with any configuration
changes without having to rebuild my whole NixOS configuration.
2025-06-12 12:15:56 +01:00

30 lines
388 B
Nix

{
config,
inputs,
lib,
...
}:
with lib;
let
cfg = config.coding.neovim;
in
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
];
options.coding.neovim.enable = mkEnableOption "Enable neovim";
config = mkIf cfg.enable {
programs.nixvim = {
enable = true;
viAlias = true;
vimAlias = true;
imports = [ ./nixvim.nix ];
};
};
}