Commit Graph

73 Commits

Author SHA1 Message Date
Folke Lemaitre 540847b7cb
fix: strip `/` from dirs. Fixes #60 2022-12-21 10:17:10 +01:00
Folke Lemaitre 44f80a7f5d
feat(plugin): allow plugin files only without a main plugin module. Fixes #53 2022-12-21 09:03:47 +01:00
Folke Lemaitre af87108605
fix(util): fixed double slashes 2022-12-20 08:47:01 +01:00
Folke Lemaitre 198963fdab
feat: utility method to normalize a path 2022-12-20 07:19:41 +01:00
Folke Lemaitre 3f517abfa4
feat: cleanup keys/cmd handlers when loading a plugin 2022-12-03 23:42:05 +01:00
Folke Lemaitre dbe2d0942a
feat: plugins no longer need to be installed under site/pack/*/opt 2022-12-03 15:48:06 +01:00
Folke Lemaitre e4cf8b1416
feat: added debug option 2022-12-02 16:52:22 +01:00
Folke Lemaitre 575421b3fb
feat!: plugins are now autmatically loaded on require. `module=` no longer needed! 2022-12-02 09:25:30 +01:00
Folke Lemaitre af8b8e128e
feat: lazy setup with either a plugins module, or a plugins spec 2022-12-01 13:34:01 +01:00
Folke Lemaitre 4653119625
perf: reset packpath to only include the lazy package. Improved my startup time by 2ms 2022-12-01 11:23:39 +01:00
Folke Lemaitre 20ff5fa218
feat: added profiler view 2022-11-29 12:02:38 +01:00
Folke Lemaitre 2fa5be3779
refactor(config): package_path => packpath 2022-11-29 00:14:23 +01:00
Folke Lemaitre 073b5e3caa
perf: fast return for Util.ls when file found 2022-11-28 11:35:47 +01:00
Folke Lemaitre 9179c0a14d
style: cleanup & annotations 2022-11-28 07:36:32 +01:00
Folke Lemaitre 413dd5b112
fix: dont return init.lua in lsmod 2022-11-26 13:57:17 +01:00
Folke Lemaitre 359c260911
chore: remove deprecated scandir 2022-11-26 13:57:05 +01:00
Folke Lemaitre 7933ae11c4
feat: error handler for loading modules, config and init, with custom error formatting 2022-11-25 22:50:17 +01:00
Folke Lemaitre fe33e4e3dd
feat: lazy caching now works with functions that have upvalues 2022-11-25 15:35:40 +01:00
Folke Lemaitre 711834f17c
refactor: split util 2022-11-24 22:03:00 +01:00
Folke Lemaitre 6f835ab87b
feat: url open handlers 2022-11-23 16:12:12 +01:00
Folke Lemaitre 68a8d57b5b
chore: cleanup 2022-11-23 16:10:16 +01:00
Folke Lemaitre e59dc377d5
feat: util.info 2022-11-22 22:35:06 +01:00
Folke Lemaitre fca984b18c
refactor: move core modules needed for loading under core 2022-11-22 21:28:27 +01:00