summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates
diff options
context:
space:
mode:
authorbrustybee <bee@4d2.org>2026-03-15 02:55:19 +0530
committerbrustybee <bee@4d2.org>2026-03-15 02:55:19 +0530
commit14b0ceb90c80793f013ebff6d824c2cead544501 (patch)
tree3474790722b4a9a00cc09f4ad2f0320a0fdaf4c0 /common/modules/matugen/templates
parentf33743bfd1fa3924d67a33ea8816c1b45d92e6a1 (diff)
neovim matugen template
Diffstat (limited to 'common/modules/matugen/templates')
-rw-r--r--common/modules/matugen/templates/matugen-neovim.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/common/modules/matugen/templates/matugen-neovim.nix b/common/modules/matugen/templates/matugen-neovim.nix
new file mode 100644
index 0000000..dcb84a2
--- /dev/null
+++ b/common/modules/matugen/templates/matugen-neovim.nix
@@ -0,0 +1,28 @@
+{
+ config,
+ lib,
+ ...
+}:
+{
+ config = lib.mkIf config.beeMods.beeVim.enable {
+ xdg.configFile = {
+ "matugen/templates/neovim.json" = {
+ text =
+ # json
+ ''
+ {
+ "source_color": "{{colors.primary.default.hex}}",
+ <* if {{ is_dark_mode }} *>
+ "background": "{{colors.background.default.hex}}",
+ <* else *>
+ "background": "{{colors.surface_container.default.hex}}",
+ <* endif *>
+ "harmony": 0.5,
+ "mode": "{{mode}}"
+ }
+ '';
+
+ };
+ };
+ };
+}