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