From dc13dfb5d77ae6c6a34802b4dbf0cac686480587 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 29 Feb 2024 17:30:18 +0100 Subject: initial commit --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 README.md (limited to 'README.md') 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') -- cgit v1.2.3