diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2023-03-31 13:05:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-31 13:05:22 +0100 |
| commit | 83bfd94d1df5eecb8e4069a227c7d24598636d63 (patch) | |
| tree | 14ef711cf4f158f48bfc83473e024b62f6f74da7 /runtime/doc | |
| parent | b34097fe6d2ea5c84bcec65a834a430d9f58eb64 (diff) | |
| download | rneovim-83bfd94d1df5eecb8e4069a227c7d24598636d63.tar.gz rneovim-83bfd94d1df5eecb8e4069a227c7d24598636d63.tar.bz2 rneovim-83bfd94d1df5eecb8e4069a227c7d24598636d63.zip | |
refactor(loader): cache hash information
Whenever we run fs_stat() on a path, save this information in the loader
so it can be re-used.
- Loader.loadfile: Remove arguments `hash` as it is no longer needed.
- Loader.loader: Use _G.loadstring instead of Loader.load
This allows plugins to wrap loadstring to inspection and profiling
- factor out read file logic
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/lua.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 33833fa83e..14f2ba2b04 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -2065,7 +2065,7 @@ find({modname}, {opts}) *vim.loader.find()* for `modname="*"` reset({path}) *vim.loader.reset()* - Resets the topmods cache for the path, or all the paths if path is nil. + Resets the cache for the path, or all the paths if path is nil. Parameters: ~ • {path} string? path to reset |