mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-24 06:29:48 +01:00
16 lines
495 B
Nix
16 lines
495 B
Nix
{lib, ...}: let
|
|
inherit (lib.modules) mkRenamedOptionModule;
|
|
inherit (lib.options) mkEnableOption;
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
|
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";
|
|
};
|
|
};
|
|
}
|