aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-03-05 03:21:03 +0100
committerGitHub <noreply@github.com>2023-03-05 03:21:03 +0100
commit08db751ef23471a030b09e6fc16b79702f3f2f1e (patch)
treeda71eda21387072c1fede9e5ae7e351b69977959 /lua/mason-core
parentfeat: add semver module (#1058) (diff)
downloadmason-08db751ef23471a030b09e6fc16b79702f3f2f1e.tar
mason-08db751ef23471a030b09e6fc16b79702f3f2f1e.tar.gz
mason-08db751ef23471a030b09e6fc16b79702f3f2f1e.tar.bz2
mason-08db751ef23471a030b09e6fc16b79702f3f2f1e.tar.lz
mason-08db751ef23471a030b09e6fc16b79702f3f2f1e.tar.xz
mason-08db751ef23471a030b09e6fc16b79702f3f2f1e.tar.zst
mason-08db751ef23471a030b09e6fc16b79702f3f2f1e.zip
refactor(package): lazy-require modules (#1060)
The mason-core.package module is loaded whenever there's anything interfacing with Mason packages (i.e. pretty often). Some of the modules imported at the top-level is used pretty infrequently, so we lazily require these instead.
Diffstat (limited to 'lua/mason-core')
-rw-r--r--lua/mason-core/package/init.lua18
1 files changed, 6 insertions, 12 deletions
diff --git a/lua/mason-core/package/init.lua b/lua/mason-core/package/init.lua
index 05d72751..5060ff5c 100644
--- a/lua/mason-core/package/init.lua
+++ b/