aboutsummaryrefslogtreecommitdiff
path: root/config/vis/visrc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/vis/visrc.lua')
-rw-r--r--config/vis/visrc.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua
index c8ebc11..3a44a6a 100644
--- a/config/vis/visrc.lua
+++ b/config/vis/visrc.lua
@@ -42,12 +42,17 @@ end)
require('plugins/suw')
+local theme = "theme"
vis.events.subscribe(vis.events.INIT, function()
- -- Your global configuration options
- local theme = "theme"
- vis:command("set theme ".. theme)
+ -- Your global configuration options
+ vis:command("set theme " .. theme)
end)
+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')
+
-- seperate default settings into per file and per window to not override settings from
-- vis-editorconf which are set on FILE_OPEN
-- default file settings