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