2023-04-17 21:38:57 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
with builtins; let
|
|
|
|
cfg = config.vim.languages.markdown;
|
|
|
|
in {
|
|
|
|
options.vim.languages.markdown = {
|
|
|
|
enable = mkEnableOption "Markdown language support";
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
package = nvim.types.mkGrammarOption pkgs "markdown";
|
|
|
|
};
|
2023-04-17 21:38:57 +00:00
|
|
|
};
|
|
|
|
}
|