I have updated the module I'm writing, but:

:lua= require('XXX')

keeps returning a cached value.

1 Answer 1


I would do:

lua package.loaded.XXX = nil
lua require("XXX")

More information on What is a way to reload lua scripts during run-time?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.