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:
parent
4f858eb004
commit
f421af99fe
2 changed files with 35 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue