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

View file

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