mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
modules/performance: add ability to byte-compile plugin lua dependencies
This commit adds byte compiling of plugin lua dependencies (specifically propagatedBuildInputs). It's enabled by `performance.byteCompileLua.luaLib` option.
This commit is contained in:
parent
404e56066f
commit
2c6182351f
4 changed files with 108 additions and 1 deletions
|
@ -35,4 +35,7 @@ lib.fix (self: {
|
|||
|
||||
# Remove dependencies from all plugins in a list
|
||||
removeDeps = map (p: p // { plugin = removeAttrs p.plugin [ "dependencies" ]; });
|
||||
|
||||
# Apply a map function to each 'plugin' attr of the normalized plugin list
|
||||
mapNormalizedPlugins = f: map (p: p // { plugin = f p.plugin; });
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue