mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-12-04 18:37:17 +00:00
31 lines
731 B
Nix
31 lines
731 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkOption types nvim;
|
|
|
|
cfg = config.vim.languages.markdown;
|
|
in {
|
|
options.vim.languages.markdown = {
|
|
enable = mkEnableOption "Markdown markup language support";
|
|
|
|
glow.enable = mkOption {
|
|
type = types.bool;
|
|
default = true;
|
|
description = "Enable markdown preview in neovim with glow";
|
|
};
|
|
|
|
treesitter = {
|
|
enable = mkOption {
|
|
description = "Enable Markdown treesitter";
|
|
type = types.bool;
|
|
default = config.vim.languages.enableTreesitter;
|
|
};
|
|
mdPackage = nvim.types.mkGrammarOption pkgs "markdown";
|
|
mdInlinePackage = nvim.types.mkGrammarOption pkgs "markdown-inline";
|
|
};
|
|
};
|
|
}
|