language/markdown: added markdown-previewer.nvim

This commit is contained in:
Donnerinoern 2024-02-12 14:19:27 +01:00
commit 7352558623
2 changed files with 73 additions and 1 deletions

View file

@ -40,6 +40,62 @@ in {
};
};
markdownPreview = {
enable = mkOption {
type = types.bool;
default = false;
description = "Enable markdown preview in neovim with markdown-preview.nvim";
};
autoStart = mkOption {
type = types.bool;
default = false;
description = "Automatically open the preview window after entering a Markdown buffer";
};
autoClose = mkOption {
type = types.bool;
default = true;
description = "Automatically close the preview window after leaving a Markdown buffer";
};
lazyRefresh = mkOption {
type = types.bool;
default = false;
description = "Only update preview when saving or leaving insert mode";
};
filetypes = mkOption {
type = types.listOf types.str;
default = ["markdown"];
description = "Allowed filetypes";
};
alwaysAllowPreview = mkOption {
type = types.bool;
default = false;
description = "Allow preview on all filetypes";
};
broadcastServer = mkOption {
type = types.bool;
default = false;
description = "Allow for outside and network wide connections";
};
customIP = mkOption {
type = types.str;
default = "";
description = "IP-address to use";
};
customPort = mkOption {
type = types.str;
default = "";
description = "Port to use";
};
};
treesitter = {
enable = mkOption {
description = "Enable Markdown treesitter";