1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-24 18:00:59 +01:00

modules/lsp: print keymaps table multiline

Makes `init.lua` easier to read.

Follow up to 9faa339d9e
This commit is contained in:
Matt Sturgeon 2025-09-30 14:14:47 +01:00
parent 4f858eb004
commit f421af99fe
2 changed files with 35 additions and 2 deletions

View file

@ -104,7 +104,12 @@ in
group = "nixvim_lsp_binds";
callback = lib.nixvim.mkRaw ''
function(args)
local __keymaps = ${lib.nixvim.toLuaObject cfg.keymaps}
local __keymaps = ${
lib.nixvim.lua.toLua' {
multiline = true;
indent = " ";
} cfg.keymaps
}
for _, keymap in ipairs(__keymaps) do
local options = vim.tbl_extend(