Skip to content

Commit

Permalink
plugins/lsp: add support for mode in non-extra keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN authored and nix-infra-bot committed Jan 6, 2025
1 parent a74897d commit e59e993
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/lsp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,16 @@ lib.nixvim.plugins.mkNeovimPlugin {
key: action:
let
actionStr = action.action or action;
mode = action.mode or "n";
actionProps = lib.optionalAttrs (builtins.isAttrs action) (
builtins.removeAttrs action [ "action" ]
builtins.removeAttrs action [
"action"
"mode"
]
);
in
{
inherit key;
mode = "n";
inherit key mode;
action = lib.nixvim.mkRaw (prefix + actionStr);

options = {
Expand Down

0 comments on commit e59e993

Please sign in to comment.