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