1
0
Fork 0
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:
Matt Sturgeon 2025-09-30 14:19:18 +01:00
parent f421af99fe
commit cb3653a1a8
2 changed files with 14 additions and 6 deletions

View file

@ -86,13 +86,11 @@
{
action = vim.lsp.buf["definition"],
key = "gd",
lspBufAction = "definition",
mode = ""
},
{
action = vim.lsp.buf["hover"],
key = "K",
lspBufAction = "hover",
mode = ""
},
{