Now I can run `nix run .#nvim` to run Neovim with any configuration changes without having to rebuild my whole NixOS configuration.
30 lines
388 B
Nix
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 ];
|
|
};
|
|
};
|
|
}
|