Skip to content

Commit 9e81cb7

Browse files
committed
plugins/glow: support style path
1 parent 0999f92 commit 9e81cb7

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

plugins/by-name/glow/default.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
3737
"single"
3838
] "Style of the floating window's border.";
3939

40-
style = defaultNullOpts.mkEnum [
41-
"dark"
42-
"light"
43-
] (lib.nixvim.mkRaw "vim.opt.background") "Glow style.";
40+
style = defaultNullOpts.mkNullable (
41+
with lib.types;
42+
either (maybeRaw str) (enum [
43+
"dark"
44+
"light"
45+
])
46+
) (lib.nixvim.mkRaw "vim.opt.background") "Glow style.";
4447

4548
pager = defaultNullOpts.mkBool false ''
4649
Display output in a pager style.

tests/test-sources/plugins/by-name/glow/default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,14 @@
2323
};
2424
};
2525
};
26+
27+
example = {
28+
plugins.glow = {
29+
enable = true;
30+
settings = {
31+
border = "single";
32+
style = "/path/to/catppuccin.json";
33+
};
34+
};
35+
};
2636
}

0 commit comments

Comments
 (0)