We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e49e7 commit 838829cCopy full SHA for 838829c
plugins/lsp/default.nix
@@ -196,8 +196,8 @@ in
196
mapAttrsToList (
197
key: action:
198
let
199
- actionStr = if isString action then action else action.action;
200
- actionProps = if isString action then { } else filterAttrs (n: v: n != "action") action;
+ actionStr = action.action or action;
+ actionProps = optionalAttrs (isAttrs action) (removeAttrs action [ "action" ]);
201
in
202
{
203
mode = "n";
@@ -210,8 +210,8 @@ in
210
}
211
);
212
213
- (mkMaps "vim.diagnostic." cfg.keymaps.diagnostic)
214
- ++ (mkMaps "vim.lsp.buf." cfg.keymaps.lspBuf)
+ mkMaps "vim.diagnostic." cfg.keymaps.diagnostic
+ ++ mkMaps "vim.lsp.buf." cfg.keymaps.lspBuf
215
++ cfg.keymaps.extra;
216
217
# Enable inlay-hints
0 commit comments