From 69cf1b6204adf085918b6a965c5f0b86c7ae23f5 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 10 Jan 2022 19:50:13 +0000 Subject: [PATCH] core: add description field to mappings This is paving the way for which-key support! --- nixvim.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixvim.nix b/nixvim.nix index 3fb74c64..aeff199c 100644 --- a/nixvim.nix +++ b/nixvim.nix @@ -65,6 +65,12 @@ let type = types.str; description = "The action to execute."; }; + + description = mkOption { + type = types.nullOr types.str; + description = "A textual description of this keybind, to be shown in which-key, if you have it."; + default = null; + }; }; }) ];