Skip to content

Commit

Permalink
lsp/keymaps: cosmetic implem changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Dec 2, 2024
1 parent 80e49e7 commit 838829c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/lsp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ in
mapAttrsToList (
key: action:
let
actionStr = if isString action then action else action.action;
actionProps = if isString action then { } else filterAttrs (n: v: n != "action") action;
actionStr = action.action or action;
actionProps = optionalAttrs (isAttrs action) (removeAttrs action [ "action" ]);
in
{
mode = "n";
Expand All @@ -210,8 +210,8 @@ in
}
);
in
(mkMaps "vim.diagnostic." cfg.keymaps.diagnostic)
++ (mkMaps "vim.lsp.buf." cfg.keymaps.lspBuf)
mkMaps "vim.diagnostic." cfg.keymaps.diagnostic
++ mkMaps "vim.lsp.buf." cfg.keymaps.lspBuf
++ cfg.keymaps.extra;

# Enable inlay-hints
Expand Down

0 comments on commit 838829c

Please sign in to comment.