mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 05:55:59 +01:00
30 lines
696 B
Nix
30 lines
696 B
Nix
{
|
|
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";
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
}
|