modules/luasnip: add extra imports

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-21 00:06:11 +03:00
parent 463a4f2d43
commit 8829e32f00
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -195,6 +195,9 @@ in
inherit (cfg) package;
varName = "luasnip";
setupSettings = cfg.settings;
extraImports = lib.mkIf (cfg.snippetGroups != [ ]) {
luasnip_types = "luasnip.util.types";
};
afterSetup = lib.mkIf (cfg.snippetGroups != [ ]) [
(scope (lib.flatten [
(lib.mapAttrsToList (k: v: lset k (pipe1 varName v)) {