aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-02-18 15:35:14 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-02-18 15:35:14 +0100
commit8c503d17cd220bede2c57191af29fd36a8b95c6c (patch)
treeb05e7ee0f53918c86d940d16252da2eb81eb3c03
parent247edaa94d4451941a177bcd354290b5ba4861c9 (diff)
downloaddotfiles-8c503d17cd220bede2c57191af29fd36a8b95c6c.tar.gz
dotfiles-8c503d17cd220bede2c57191af29fd36a8b95c6c.zip
[vis] only use inotify if ionotifywait is installed
-rw-r--r--config/vis/visrc.lua8
1 files changed, 5 insertions, 3 deletions
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