35 lines
568 B
Nix
35 lines
568 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./opts.nix
|
|
./keymaps.nix
|
|
./plugins
|
|
];
|
|
|
|
options.kekleo.neovim = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = "Whether to enable neovim.";
|
|
};
|
|
|
|
config = lib.mkIf config.kekleo.neovim {
|
|
programs.nixvim = {
|
|
enable = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
vimdiffAlias = true;
|
|
defaultEditor = true;
|
|
|
|
colorschemes.tokyonight.enable = true;
|
|
|
|
clipboard.providers.wl-copy.enable = true;
|
|
|
|
globals.mapleader = " ";
|
|
};
|
|
};
|
|
}
|