Skip to content

Commit

Permalink
Merge pull request #220 from NotAShelf/post-mortem
Browse files Browse the repository at this point in the history
docs: add missing documentation entry; define renamed options
  • Loading branch information
NotAShelf authored Feb 15, 2024
2 parents d2334ca + 054ade0 commit 2b17496
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/release-notes/rl-0.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Release notes for release 0.6

- colorizer.nvim: switched to a maintained fork

- Added `markdown-preview.nvim`, moved `glow.nvim` to a brand new `vim.utility.preview` category.

[notashelf](https://github.com/notashelf):

- Finished moving to `nixosOptionsDoc` in the documentation and changelog. We are fully free of asciidoc now
Expand Down
10 changes: 6 additions & 4 deletions modules/utility/preview/glow/glow.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{lib, ...}: let
inherit (lib) mkEnableOption mkMappingOption;
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";
};
mappings.openPreview = mkMappingOption "Open preview" "<leader>p";
};
};
}

0 comments on commit 2b17496

Please sign in to comment.