treewide: add nvf base16 theming

This commit is contained in:
Anthony Rodriguez 2024-12-05 00:02:59 +01:00
parent 44f2dd55d5
commit 56e4085c73
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 13 additions and 4 deletions

View file

@ -1,5 +1,6 @@
{ {
inputs, inputs,
lib,
pkgs, pkgs,
... ...
}: { }: {
@ -12,9 +13,11 @@
vimAlias = true; vimAlias = true;
enableLuaLoader = true; enableLuaLoader = true;
preventJunkFiles = true; preventJunkFiles = true;
options.tabstop = 4;
autoIndent = false;
useSystemClipboard = true; useSystemClipboard = true;
options = {
tabstop = 4;
autoindent = false;
};
luaConfigPost = '' luaConfigPost = ''
vim.opt.formatoptions:remove('c') vim.opt.formatoptions:remove('c')
@ -34,7 +37,7 @@
}; };
}; };
}; };
theme = { theme = lib.mkDefault {
enable = true; enable = true;
name = "catppuccin"; name = "catppuccin";
style = "macchiato"; style = "macchiato";

View file

@ -6,7 +6,7 @@
pkgs, pkgs,
... ...
}: let }: let
inherit (lib) mkEnableOption mkOption mkIf attrNames; inherit (lib) mkDefault mkEnableOption mkOption mkIf attrNames;
inherit (lib.types) path package enum; inherit (lib.types) path package enum;
inherit (lib') generateGtkColors; inherit (lib') generateGtkColors;
cfg = config.theme; cfg = config.theme;
@ -273,6 +273,12 @@ in {
palette = builtins.attrValues (builtins.mapAttrs (_: color: "#${color}") scheme.palette); palette = builtins.attrValues (builtins.mapAttrs (_: color: "#${color}") scheme.palette);
}; };
}; };
nvf.settings.vim.theme = {
enable = true;
name = "base16";
base16-colors = scheme.palette;
};
}; };
}; };
}; };