mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-27 18:42:18 +00:00
Updated README.md for lurker.preswap()
This commit is contained in:
@@ -33,7 +33,8 @@ scan detects any changes a hotswap is performed.
|
||||
|
||||
### lurker.preswap
|
||||
`lurker.preswap` can be set to a function. This function is called before a
|
||||
hotswap occurs and is passed the name of the file which will be swapped.
|
||||
hotswap occurs and is passed the name of the file which will be swapped. If the
|
||||
function returns `true` then the hotswap is canceled.
|
||||
```lua
|
||||
lurker.preswap = function(f) print("File " .. f .. " swapping...") end
|
||||
```
|
||||
|
Reference in New Issue
Block a user