34 lines
583 B
Nix
34 lines
583 B
Nix
{
|
|
inputs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.modules.devtools.neovim;
|
|
in {
|
|
imports = [
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
./autocommands.nix
|
|
./completion.nix
|
|
./keymappings.nix
|
|
./options.nix
|
|
./plugins
|
|
./todo.nix
|
|
];
|
|
options = {
|
|
modules.devtools.neovim.enable = mkEnableOption "Enables neovim";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
programs.nixvim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
|
|
luaLoader.enable = true;
|
|
};
|
|
};
|
|
}
|