neovim-flake/modules/utility/preview/glow/glow.nix

15 lines
434 B
Nix
Raw Normal View History

{lib, ...}: let
inherit (lib) mkEnableOption mkMappingOption mkRenamedOptionModule;
in {
imports = [
(mkRenamedOptionModule ["vim" "languages" "markdown" "glow" "enable"] ["vim" "utility" "preview" "glow" "enable"])
];
options.vim.utility.preview = {
glow = {
enable = mkEnableOption "markdown preview in neovim with glow";
mappings.openPreview = mkMappingOption "Open preview" "<leader>p";
};
};
}