Folke Lemaitre
690f9e88e2
refactor: prepping for vim.loader
2023-03-20 23:51:09 +01:00
Folke Lemaitre
236f8517ba
fix(cache): fix loading libs on Darwin
2023-03-20 08:01:30 +01:00
Folke Lemaitre
b4b11f48aa
style: better comments for cache.find
2023-03-16 23:53:36 +01:00
Folke Lemaitre
2e3c16e526
docs: better comments for Cache.find
2023-03-16 14:13:18 +01:00
Folke Lemaitre
6b55862d2d
refactor(cache): refactor for upstreaming to `vim.loader`
2023-03-15 15:10:56 +01:00
Folke Lemaitre
21a219a825
refactor(cache): revert all `vim.cache` changes and disable it if it would ever exist
2023-03-15 09:01:00 +01:00
Folke Lemaitre
942c805b84
fix(cache): remove dependency on jit
2023-03-15 08:53:19 +01:00
Folke Lemaitre
5b7b8c5149
feat(cache): automatically reset topmods when a user changes a file for a path on the rtp
2023-03-14 19:54:44 +01:00
Folke Lemaitre
4446d69c28
build(cache): added script to sync cache implementation with Neovim
2023-03-14 18:37:27 +01:00
Folke Lemaitre
2a88a73ace
style(cache): ignore a luacheck error
2023-03-14 18:33:39 +01:00
Folke Lemaitre
810acc1e86
feat(cache): drop dependency on ffi
2023-03-14 18:33:16 +01:00
Folke Lemaitre
da295017e4
refactor(cache): Cache.track => Cache._track
2023-03-14 18:32:29 +01:00
Folke Lemaitre
0b7596f609
style(cache): disable duplicate warnings
2023-03-14 18:31:43 +01:00
Folke Lemaitre
d0db9f83ef
docs(cache): more code comments
2023-03-14 14:07:41 +01:00
Folke Lemaitre
49dda8751e
feat(cache): remove any mentions of lazy. Move the cache to cache/luac instead of cache/lazy/luac
2023-03-14 13:08:09 +01:00
Folke Lemaitre
1a34636094
refactor(cache): documented the cache in preparation to upstream
2023-03-14 12:56:58 +01:00
tobiaslieber
8d73b9bccd
fix(cache): path ( #645 )
2023-03-13 22:50:50 +01:00
Folke Lemaitre
79f85e5fed
fix(cache): add hack to work-around incorrect requires back. Not a fan of this. Fixes #603
2023-02-28 12:38:20 +01:00
Folke Lemaitre
b814d87089
style(cache): removed hack for relative paths
2023-02-27 20:25:03 +01:00
Folke Lemaitre
e916f41df2
fix(cache): hack to work around plugins trying to load relatve modules. Fixes #543
2023-02-15 18:20:02 +01:00
Folke Lemaitre
9ca3222061
fix(cache): lsmod now also supports lua libs. Fixes #544
2023-02-15 17:08:36 +01:00
Folke Lemaitre
17a3c3acea
perf: more cache optims
2023-02-14 11:00:56 +01:00
Folke Lemaitre
6351a2e8f3
refactor: Cache.stats -> Cache.stats.find
2023-02-13 17:24:15 +01:00
Folke Lemaitre
b1f7ae68a7
perf: use modkey instead of modpath
2023-02-13 17:22:00 +01:00
Folke Lemaitre
462633bae1
perf: new file-based cache that ensures correct rtp order ( #532 )
...
* perf: new file-based cache that ensures rtp is alweays correct and will cache all files, including those after startup
* refactor: new cache
* test: fix tests
* fix(cache): cache file names on Windows
* feat(cache): allow to disable the cache
* docs: updated cache settings
2023-02-13 12:01:56 +01:00
Folke Lemaitre
81017b99e7
fix(cache): de-duplicate topmods. Fixes #349
2023-01-13 09:01:24 +01:00
Folke Lemaitre
2128ca90fb
feat(spec): event, keys, ft and cmd can now also be a function that returns the values to be used
2023-01-12 13:08:43 +01:00
Folke Lemaitre
07fd7adb34
fix(cache): use cached chunk when specs are loading for valid plugins
2023-01-11 23:11:38 +01:00
Folke Lemaitre
e1cd9cd0ad
fix(loader): prevent loading plugins when loading specs
2023-01-11 23:08:07 +01:00
Folke Lemaitre
9fa62ea8ea
fix(cache): dont keep invalid entries in the cache (cleanup)
2023-01-10 09:28:59 +01:00
Folke Lemaitre
d3a963d51c
refactor(util): improved notify functions
2023-01-10 09:28:59 +01:00
Folke Lemaitre
ad00eb1be2
test: fixed helper function to delete test directory
2023-01-07 22:52:49 +01:00
Folke Lemaitre
d34c85d580
fix(cache): check that modpaths still exist when finding mod root
2023-01-07 22:24:53 +01:00
Folke Lemaitre
b2dec14824
fix(cache): check full paths of cached modpaths. Fixes #324
2023-01-05 13:42:23 +01:00
Folke Lemaitre
847ef091fa
style: disabled stats debug
2023-01-05 11:30:47 +01:00
Folke Lemaitre
b2673f1057
style: debug formatting
2023-01-04 00:27:31 +01:00
Folke Lemaitre
953c2791d8
fix(util): made `Util.lsmod` more robust. See #298
2023-01-03 22:31:18 +01:00
Folke Lemaitre
7b9fa284f8
style: better debug
2023-01-03 16:17:15 +01:00
Folke Lemaitre
ff1e322b4f
style: debug
2023-01-03 09:13:22 +01:00
Folke Lemaitre
9893430187
fix(cache): dont return directories in lsmod
2023-01-02 15:08:20 +01:00
Folke Lemaitre
60e96b478a
fix(loader): always load init.lua in plugin mods
2023-01-02 15:04:32 +01:00
Folke Lemaitre
9e90852a47
fix(cache): autoloading was broken!
2023-01-02 14:50:34 +01:00
Folke Lemaitre
1ec8f08480
fix(cache): properly return two values for finddir
2023-01-02 14:46:56 +01:00
Folke Lemaitre
8063523471
ci: added debug info when #topmods>1
2023-01-02 14:29:55 +01:00
Folke Lemaitre
0bc73db503
fix(cache): only autoload when plugins have been parsed. Needed to support `import`
2023-01-02 12:54:38 +01:00
Folke Lemaitre
f6b0172e92
fix(cache): allow lazyvim as a plugin
2023-01-02 12:54:00 +01:00
Folke Lemaitre
919b7f5de3
feat(spec): added `import` to import other plugin modules
2023-01-02 09:44:28 +01:00
Folke Lemaitre
77ff7beaa4
perf(cache): cache all lua files till UIEnter instead of VimEnter
2023-01-02 09:39:28 +01:00
Folke Lemaitre
51c23b661e
fix(spec): allow a spec module to be on the rtp and not only in config
2023-01-01 20:31:34 +01:00
Folke Lemaitre
11eee43c7e
fix(cache): keep ordering of topmods the same as in rtp
2023-01-01 18:52:07 +01:00