Merge pull request #220 from NotAShelf/post-mortem

docs: add missing documentation entry; define renamed options
This commit is contained in:
NotAShelf 2024-02-15 16:51:31 +03:00 committed by GitHub
commit 2b1749676d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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";
};
};
}