diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/vis/themes/st-256.lua (renamed from config/vis/themes/default.lua) | 0 | ||||
| -rw-r--r-- | config/vis/visrc.lua | 7 |
2 files changed, 5 insertions, 2 deletions
diff --git a/config/vis/themes/default.lua b/config/vis/themes/st-256.lua index b102133..b102133 100644 --- a/config/vis/themes/default.lua +++ b/config/vis/themes/st-256.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) |
