plugins/glow: support style path

This commit is contained in:
Austin Horstman 2024-09-15 16:09:02 -05:00
parent 0999f92567
commit 9e81cb7391
No known key found for this signature in database
2 changed files with 17 additions and 4 deletions

View file

@ -37,10 +37,13 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
"single"
] "Style of the floating window's border.";
style = defaultNullOpts.mkEnum [
"dark"
"light"
] (lib.nixvim.mkRaw "vim.opt.background") "Glow style.";
style = defaultNullOpts.mkNullable (
with lib.types;
either (maybeRaw str) (enum [
"dark"
"light"
])
) (lib.nixvim.mkRaw "vim.opt.background") "Glow style.";
pager = defaultNullOpts.mkBool false ''
Display output in a pager style.

View file

@ -23,4 +23,14 @@
};
};
};
example = {
plugins.glow = {
enable = true;
settings = {
border = "single";
style = "/path/to/catppuccin.json";
};
};
};
}