diff --git a/docs/manual/release-notes/rl-0.9.md b/docs/manual/release-notes/rl-0.9.md index 09602f16..90bd9b1d 100644 --- a/docs/manual/release-notes/rl-0.9.md +++ b/docs/manual/release-notes/rl-0.9.md @@ -180,6 +180,7 @@ https://github.com/gorbit99/codewindow.nvim [irobot](https://github.com/irobot): -- Add `remap` option to `vim.keymaps` +- Fix non-functional `vim.keymaps.*.noremap`. Now, setting it to false is + equivalent to `:lua vim.keymap.set(..., { remap = true })` diff --git a/modules/neovim/mappings/options.nix b/modules/neovim/mappings/options.nix index 2c622b43..98e04a65 100644 --- a/modules/neovim/mappings/options.nix +++ b/modules/neovim/mappings/options.nix @@ -1,6 +1,6 @@ {lib, ...}: let inherit (lib.options) mkOption literalMD; - inherit (lib.types) either str listOf attrsOf nullOr submodule bool; + inherit (lib.types) either str listOf attrsOf nullOr submodule; inherit (lib.nvim.config) mkBool; mapConfigOptions = { @@ -25,12 +25,6 @@ expr = mkBool false "Means that the action is actually an expression. Equivalent to adding to a map."; unique = mkBool false "Whether to fail if the map is already defined. Equivalent to adding to a map."; noremap = mkBool true "Whether to use the 'noremap' variant of the command, ignoring any custom mappings on the defined action. It is highly advised to keep this on, which is the default."; - remap = mkOption { - default = false; - type = bool; - internal = true; - description = "'noremap' is on by default. This option is used internally when noremap is set to false."; - }; }; mapType = submodule {