From 054ade00759e951ec3956b868a57d7fd1d34ca00 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 15 Feb 2024 09:16:22 +0300 Subject: [PATCH] docs: add missing documentation entry; define renamed options --- docs/release-notes/rl-0.6.md | 2 ++ modules/utility/preview/glow/glow.nix | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/release-notes/rl-0.6.md b/docs/release-notes/rl-0.6.md index 0bde4a5..061555f 100644 --- a/docs/release-notes/rl-0.6.md +++ b/docs/release-notes/rl-0.6.md @@ -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 diff --git a/modules/utility/preview/glow/glow.nix b/modules/utility/preview/glow/glow.nix index e75547c..4843421 100644 --- a/modules/utility/preview/glow/glow.nix +++ b/modules/utility/preview/glow/glow.nix @@ -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" "p"; - }; + mappings.openPreview = mkMappingOption "Open preview" "p"; }; }; }