From 6bcf9cdd461359082638d36d2d4d8142e35e8b58 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 12 May 2017 14:55:53 +0200 Subject: only use st specific vis theme if we are in st --- config/vis/visrc.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/vis/visrc.lua') diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua index 19efc4d..ffd5a70 100644 --- a/config/vis/visrc.lua +++ b/config/vis/visrc.lua @@ -7,8 +7,11 @@ require('plugins/vis-spellcheck/spellcheck') vis.events.subscribe(vis.events.INIT, function() -- Your global configuration options - --vis:command("set theme ".. (vis.ui.colors <= 16 and "default-16" or "default-256")) - vis:command("set theme default") + local theme = "default" + if string.match(os.getenv('TERM'), '^st.*') then + theme = "st" + end + vis:command("set theme ".. theme .. (vis.ui.colors <= 16 and "-16" or "-256")) end) vis.events.subscribe(vis.events.WIN_OPEN, function(win) -- cgit v1.2.3