mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 08:39:49 +01:00
14 lines
434 B
Nix
14 lines
434 B
Nix
{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";
|
|
};
|
|
};
|
|
}
|