mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
treewide (cleaning): helpers.toLuaObject -> lib.nixvim.toLuaObject
This commit is contained in:
parent
78e295fa41
commit
ec24d496d5
65 changed files with 104 additions and 104 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue