2023-04-17 21:38:57 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-08 02:16:46 +00:00
|
|
|
}: let
|
|
|
|
inherit (lib) mkEnableOption mkOption types nvim;
|
|
|
|
|
2023-04-17 21:38:57 +00:00
|
|
|
cfg = config.vim.languages.markdown;
|
|
|
|
in {
|
|
|
|
options.vim.languages.markdown = {
|
2023-06-05 20:10:25 +00:00
|
|
|
enable = mkEnableOption "Markdown markup language support";
|
2023-04-17 21:38:57 +00:00
|
|
|
|
|
|
|
glow.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = "Enable markdown preview in neovim with glow";
|
|
|
|
};
|
2023-04-17 21:55:27 +00:00
|
|
|
|
|
|
|
treesitter = {
|
|
|
|
enable = mkOption {
|
|
|
|
description = "Enable Markdown treesitter";
|
|
|
|
type = types.bool;
|
|
|
|
default = config.vim.languages.enableTreesitter;
|
|
|
|
};
|
2023-04-17 22:36:14 +00:00
|
|
|
mdPackage = nvim.types.mkGrammarOption pkgs "markdown";
|
|
|
|
mdInlinePackage = nvim.types.mkGrammarOption pkgs "markdown-inline";
|
2023-04-17 21:55:27 +00:00
|
|
|
};
|
2023-04-17 21:38:57 +00:00
|
|
|
};
|
|
|
|
}
|