aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-03-31 13:05:22 +0100
committerGitHub <noreply@github.com>2023-03-31 13:05:22 +0100
commit83bfd94d1df5eecb8e4069a227c7d24598636d63 (patch)
tree14ef711cf4f158f48bfc83473e024b62f6f74da7 /runtime/doc
parentb34097fe6d2ea5c84bcec65a834a430d9f58eb64 (diff)
downloadrneovim-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.txt2
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