diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2017-05-12 14:55:53 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2017-05-12 14:55:53 +0200 |
| commit | 6bcf9cdd461359082638d36d2d4d8142e35e8b58 (patch) | |
| tree | 062fb8b3142661dfb859bc35d4fbb915bef43acf /config/vis | |
| parent | 7d2ab25601a76a5c9568ec7e2c1db66b3b3b2919 (diff) | |
| download | dotfiles-6bcf9cdd461359082638d36d2d4d8142e35e8b58.tar.gz dotfiles-6bcf9cdd461359082638d36d2d4d8142e35e8b58.zip | |
only use st specific vis theme if we are in st
Diffstat (limited to 'config/vis')
| -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) |
