aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: a44f6767fd1c58fb42381b21e5941ae3b8b374b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# vis-inotify - watch files using inotifywait

## Example

I use this plugin to dynamically reload my vis theme if it has changed.

```lua
local theme = "theme"
local inotify = require('plugins/vis-inotify')
inotify.add_recreate_watch('/home/muhq/.config/vis/themes/theme.lua', function(msg)
  vis:command("set theme " .. theme) -- reload vis theme
end, '-P')