plugin/luasnip: Add jsregexp lua dependency (#274)

The lua dependency is required to perform transforms (luasnip can
fallback to a simpler algorithm if it's absent). This requires us to
expose the `extraLuaPackages` option of makeNeovimConfig.
This commit is contained in:
traxys 2023-03-18 22:44:34 +01:00 committed by GitHub
parent ff063b27bd
commit bd4384a2e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -91,6 +91,7 @@ in {
in
mkIf cfg.enable {
extraPlugins = [cfg.package];
extraLuaPackages = ps: [ps.jsregexp];
extraConfigLua = concatStringsSep "\n" fromVscodeLoaders;
};
}