diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-02-29 17:30:18 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-02-29 17:30:18 +0100 |
| commit | dc13dfb5d77ae6c6a34802b4dbf0cac686480587 (patch) | |
| tree | e170855303461df53fe300ecb9ea1d212c59385d /README.md | |
| download | vis-inotify-dc13dfb5d77ae6c6a34802b4dbf0cac686480587.tar.gz vis-inotify-dc13dfb5d77ae6c6a34802b4dbf0cac686480587.zip | |
initial commit
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..a44f676 --- /dev/null +++ b/README.md @@ -0,0 +1,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') |
