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

@ -186,18 +186,18 @@ in
] loader;
in
''
require("luasnip.loaders.from_${name}").${optionalString loader.lazyLoad "lazy_"}load(${helpers.toLuaObject options})
require("luasnip.loaders.from_${name}").${optionalString loader.lazyLoad "lazy_"}load(${lib.nixvim.toLuaObject options})
''
))
];
filetypeExtendConfig = mapAttrsToList (n: v: ''
require("luasnip").filetype_extend("${n}", ${helpers.toLuaObject v})
require("luasnip").filetype_extend("${n}", ${lib.nixvim.toLuaObject v})
'') cfg.filetypeExtend;
extraConfig = [
''
require("luasnip").config.setup(${helpers.toLuaObject cfg.settings})
require("luasnip").config.setup(${lib.nixvim.toLuaObject cfg.settings})
''
];
in