modules/luasnip: add extra imports
This commit is contained in:
parent
463a4f2d43
commit
8829e32f00
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ in
|
||||||
inherit (cfg) package;
|
inherit (cfg) package;
|
||||||
varName = "luasnip";
|
varName = "luasnip";
|
||||||
setupSettings = cfg.settings;
|
setupSettings = cfg.settings;
|
||||||
|
extraImports = lib.mkIf (cfg.snippetGroups != [ ]) {
|
||||||
|
luasnip_types = "luasnip.util.types";
|
||||||
|
};
|
||||||
afterSetup = lib.mkIf (cfg.snippetGroups != [ ]) [
|
afterSetup = lib.mkIf (cfg.snippetGroups != [ ]) [
|
||||||
(scope (lib.flatten [
|
(scope (lib.flatten [
|
||||||
(lib.mapAttrsToList (k: v: lset k (pipe1 varName v)) {
|
(lib.mapAttrsToList (k: v: lset k (pipe1 varName v)) {
|
||||||
|
|
Loading…
Reference in a new issue