treewide (cleaning): helpers.toLuaObject -> lib.nixvim.toLuaObject

This commit is contained in:
Gaetan Lepage 2024-12-15 20:32:14 +01:00 committed by nix-infra-bot
parent 78e295fa41
commit ec24d496d5
65 changed files with 104 additions and 104 deletions

View file

@ -176,7 +176,7 @@ in
server:
let
updates = lib.concatMapStringsSep "\n" (name: ''
client.server_capabilities.${name} = ${helpers.toLuaObject server.capabilities.${name}}
client.server_capabilities.${name} = ${lib.nixvim.toLuaObject server.capabilities.${name}}
'') (builtins.attrNames server.capabilities);
in
''
@ -230,7 +230,7 @@ in
do
${cfg.preConfig}
local __lspServers = ${helpers.toLuaObject cfg.enabledServers}
local __lspServers = ${lib.nixvim.toLuaObject cfg.enabledServers}
-- Adding lspOnAttach function to nixvim module lua table so other plugins can hook into it.
_M.lspOnAttach = function(client, bufnr)
${updateCapabilities}