2023-02-27 19:26:00 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
2023-03-31 02:20:35 +00:00
|
|
|
with builtins; {
|
2023-03-01 11:00:26 +00:00
|
|
|
options.vim.markdown.glow = {
|
|
|
|
enable = mkOption {
|
2023-02-27 19:26:00 +00:00
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "Enable markdown preview in neovim with glow";
|
|
|
|
};
|
2023-03-01 11:00:26 +00: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";
|
|
|
|
};
|
2023-02-27 19:26:00 +00:00
|
|
|
};
|
|
|
|
}
|