neovim-flake/modules/markdown/glow/glow.nix

34 lines
739 B
Nix
Raw Normal View History

{
config,
lib,
...
}:
with lib;
2023-03-31 04:20:35 +02:00
with builtins; {
2023-03-01 12:00:26 +01:00
options.vim.markdown.glow = {
enable = mkOption {
type = types.bool;
default = false;
description = "Enable markdown preview in neovim with glow";
};
2023-03-01 12:00:26 +01:00
border = mkOption {
type = types.enum ["shadow" "rounded" "single" "double" "none"];
default = "double";
description = "Border style for glow preview";
};
# style should be either light or dark
style = mkOption {
type = types.enum ["light" "dark"];
default = "dark";
description = "Style for glow preview";
};
pager = mkOption {
type = types.bool;
default = false;
description = "Enable pager for glow preview";
};
};
}