From 8c503d17cd220bede2c57191af29fd36a8b95c6c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 18 Feb 2025 15:35:14 +0100 Subject: [vis] only use inotify if ionotifywait is installed --- config/vis/visrc.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config/vis/visrc.lua') diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua index e478ca8..5c1c352 100644 --- a/config/vis/visrc.lua +++ b/config/vis/visrc.lua @@ -96,9 +96,11 @@ vis.events.subscribe(vis.events.INIT, function() end) local inotify = require('plugins/vis-inotify') -inotify.add_recreate_watch('/home/muhq/.config/vis/themes/theme.lua', function(_) - vis:command("set theme " .. theme) -- reload vis theme -end, '-P') +if inotify.add_recreate_watch then + inotify.add_recreate_watch('/home/muhq/.config/vis/themes/theme.lua', function(_) + vis:command("set theme " .. theme) -- reload vis theme + end, '-P') +end -- seperate default settings into per file and per window to not override settings from -- vis-editorconf which are set on FILE_OPEN -- cgit v1.2.3