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 (
|
mapAttrsToList (
|
||||||
key: action:
|
key: action:
|
||||||
let
|
let
|
||||||
actionStr = if isString action then action else action.action;
|
actionStr = action.action or action;
|
||||||
actionProps = if isString action then { } else filterAttrs (n: v: n != "action") action;
|
actionProps = optionalAttrs (isAttrs action) (removeAttrs action [ "action" ]);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
|
@ -210,8 +210,8 @@ in
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
(mkMaps "vim.diagnostic." cfg.keymaps.diagnostic)
|
mkMaps "vim.diagnostic." cfg.keymaps.diagnostic
|
||||||
++ (mkMaps "vim.lsp.buf." cfg.keymaps.lspBuf)
|
++ mkMaps "vim.lsp.buf." cfg.keymaps.lspBuf
|
||||||
++ cfg.keymaps.extra;
|
++ cfg.keymaps.extra;
|
||||||
|
|
||||||
# Enable inlay-hints
|
# Enable inlay-hints
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue