2024-02-13 12:33:10 +00:00
|
|
|
{lib, ...}: let
|
2024-03-24 00:14:39 +00:00
|
|
|
inherit (lib.modules) mkRenamedOptionModule;
|
|
|
|
inherit (lib.options) mkEnableOption;
|
|
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
2024-02-13 12:33:10 +00:00
|
|
|
in {
|
2024-02-15 06:16:22 +00:00
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule ["vim" "languages" "markdown" "glow" "enable"] ["vim" "utility" "preview" "glow" "enable"])
|
|
|
|
];
|
|
|
|
|
2024-02-13 12:33:10 +00:00
|
|
|
options.vim.utility.preview = {
|
|
|
|
glow = {
|
2024-02-13 14:45:47 +00:00
|
|
|
enable = mkEnableOption "markdown preview in neovim with glow";
|
2024-02-15 06:16:22 +00:00
|
|
|
mappings.openPreview = mkMappingOption "Open preview" "<leader>p";
|
2024-02-13 12:33:10 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|