finally nvim config setup begins

This commit is contained in:
Christoph Hollizeck 2024-03-27 12:59:59 +01:00
parent f41731ae90
commit 901795c292
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
4 changed files with 148 additions and 138 deletions

View file

@ -0,0 +1,31 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.wyrdgard; let
cfg = config.wyrdgard.apps.cli-apps.nixvim;
in {
options.wyrdgard.apps.cli-apps.nixvim = with types; {
enable = mkBoolOpt true "Whether to enable nixvim or not (Default true)";
};
config = mkIf cfg.enable {
programs.nixvim = {
enable = true;
colorschemes.tokyonight = enabled;
globals.mapleader = " ";
clipboard.providers.wl-copy = enabled;
options = {
number = true;
relativenumber = true;
shiftwidth = 2;
};
};
};
}