mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-25 02:10:58 +01:00
modules/lsp: select relevant fields in keymaps table
We only use `mode`, `key`, `action`, and `options`; so explicitly inherit those. This means we don't serialise attrs that aren't needed at runtime, such as `lspBufAction`.
This commit is contained in:
parent
f421af99fe
commit
cb3653a1a8
2 changed files with 14 additions and 6 deletions
|
|
@ -86,13 +86,11 @@
|
|||
{
|
||||
action = vim.lsp.buf["definition"],
|
||||
key = "gd",
|
||||
lspBufAction = "definition",
|
||||
mode = ""
|
||||
},
|
||||
{
|
||||
action = vim.lsp.buf["hover"],
|
||||
key = "K",
|
||||
lspBufAction = "hover",
|
||||
mode = ""
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue