32 lines
533 B
Nix
32 lines
533 B
Nix
{
|
|
pkgs,
|
|
nixvim,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.lily.neovim;
|
|
in {
|
|
imports = [
|
|
# ./colorscheme.nix
|
|
./plugins
|
|
./keybinds.nix
|
|
];
|
|
options.lily.neovim = {
|
|
enable = lib.mkEnableOption "activate neovim";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
programs.nixvim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
vimdiffAlias = true;
|
|
|
|
performance = {
|
|
byteCompileLua.enable = true;
|
|
combinePlugins = {};
|
|
};
|
|
};
|
|
};
|
|
}
|