This commit is contained in:
Kartik Saranathan 2021-07-10 08:14:04 -04:00 committed by Timothée Sterle
parent bcbc72d9c0
commit f4a9328469

View File

@ -941,7 +941,7 @@ The syntax API is still a work in progress. Here are a couple of pointers:
In Lua, the `require()` function caches modules. This is a good thing for performance, but it can make working on plugins a bit cumbersome because modules are not updated on subsequent `require()` calls. In Lua, the `require()` function caches modules. This is a good thing for performance, but it can make working on plugins a bit cumbersome because modules are not updated on subsequent `require()` calls.
If you'd like to refresh the cache for a particular module, you have to modify the `packer.loaded` global table: If you'd like to refresh the cache for a particular module, you have to modify the `package.loaded` global table:
```lua ```lua
package.loaded['modname'] = nil package.loaded['modname'] = nil