nix-config/modules/home-manager/coding/neovim/default.nix

31 lines
388 B
Nix
Raw Normal View History

{
config,
2025-06-02 02:09:06 +01:00
inputs,
lib,
...
}:
with lib;
let
2025-05-03 16:50:27 +01:00
cfg = config.coding.neovim;
in
{
2025-06-02 02:09:06 +01:00
imports = [
inputs.nixvim.homeManagerModules.nixvim
];
2025-05-03 16:50:27 +01:00
options.coding.neovim.enable = mkEnableOption "Enable neovim";
config = mkIf cfg.enable {
2025-06-02 02:09:06 +01:00
programs.nixvim = {
enable = true;
viAlias = true;
vimAlias = true;
imports = [ ./nixvim.nix ];
2025-06-02 02:09:06 +01:00
};
};
}