mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
lsp/keymaps: cosmetic implem changes
This commit is contained in:
parent
80e49e7fd3
commit
838829c8f9
1 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue