From 84c2a320549ae1acdc29a011661e5cb49008c10b Mon Sep 17 00:00:00 2001 From: Ching Pei Yang <59727193+horriblename@users.noreply.github.com> Date: Sat, 17 Aug 2024 13:08:47 +0200 Subject: [PATCH] fix: map descriptions (#358) * remove unused * maps: fix missing description --- modules/neovim/mappings/options.nix | 18 +----------------- modules/wrapper/rc/config.nix | 2 +- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/modules/neovim/mappings/options.nix b/modules/neovim/mappings/options.nix index 522079e..f422991 100644 --- a/modules/neovim/mappings/options.nix +++ b/modules/neovim/mappings/options.nix @@ -44,23 +44,7 @@ # legacy stuff mapOption = submodule { - options = - mapConfigOptions - // { - action = mkOption { - type = str; - description = "The action to execute."; - }; - - lua = mkOption { - type = bool; - description = '' - If true, `action` is considered to be lua code. - Thus, it will not be wrapped in `""`. - ''; - default = false; - }; - }; + options = mapConfigOptions; }; mapOptions = mode: diff --git a/modules/wrapper/rc/config.nix b/modules/wrapper/rc/config.nix index f4c100d..b3fd2e4 100644 --- a/modules/wrapper/rc/config.nix +++ b/modules/wrapper/rc/config.nix @@ -37,7 +37,7 @@ in { else keymap.action; getOpts = keymap: { - inherit (keymap) silent nowait script expr unique noremap; + inherit (keymap) desc silent nowait script expr unique noremap; }; toLuaKeymap = {