From e40cce5653d180cf6ed7db8feeea0e87b4eb76b3 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 522079e7..f4229916 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 f4c100da..b3fd2e48 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 = {