From aa78a783310b69356527820c322f41a88370d3a6 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 22 Nov 2021 14:19:29 +0000 Subject: [PATCH] nixvim: fix bug with submodule maps --- flake.nix | 4 +++ nixvim.nix | 89 ++++++++++++++++++++++-------------------------------- 2 files changed, 40 insertions(+), 53 deletions(-) diff --git a/flake.nix b/flake.nix index b2b48c18..7e50af1c 100644 --- a/flake.nix +++ b/flake.nix @@ -49,6 +49,10 @@ }; maps.normalVisualOp."รง" = ":"; + maps.normal."m" = { + silent = true; + action = "make"; + }; plugins.lualine = { enable = true; diff --git a/nixvim.nix b/nixvim.nix index 5581fd71..3fb74c64 100644 --- a/nixvim.nix +++ b/nixvim.nix @@ -24,45 +24,47 @@ let }; mapOption = types.oneOf [ types.str (types.submodule { - silent = mkOption { - type = types.bool; - description = "Whether this mapping should be silent. Equivalent to adding to a map."; - default = false; - }; + options = { + silent = mkOption { + type = types.bool; + description = "Whether this mapping should be silent. Equivalent to adding to a map."; + default = false; + }; - nowait = mkOption { - type = types.bool; - description = "Whether to wait for extra input on ambiguous mappings. Equivalent to adding to a map."; - default = false; - }; + nowait = mkOption { + type = types.bool; + description = "Whether to wait for extra input on ambiguous mappings. Equivalent to adding to a map."; + default = false; + }; - script = mkOption { - type = types.bool; - description = "Equivalent to adding