diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-14 21:44:52 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-14 21:44:52 +0100 |
| commit | d00e7de931751d78b2771c3424230da6692cf078 (patch) | |
| tree | 2f070bf171b87383d26f0d0a11011f4046f8c8c1 | |
| parent | 822b2c913c7d6690221eabf9b252850fb7c32513 (diff) | |
| download | vis-d00e7de931751d78b2771c3424230da6692cf078.tar.gz vis-d00e7de931751d78b2771c3424230da6692cf078.tar.xz | |
lua: make sure we always load a default theme
| -rw-r--r-- | lua/vis-std.lua | 2 | ||||
| -rw-r--r-- | lua/visrc.lua | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lua/vis-std.lua b/lua/vis-std.lua index 9ed0317..ff5469a 100644 --- a/lua/vis-std.lua +++ b/lua/vis-std.lua @@ -18,6 +18,8 @@ vis.events.subscribe(vis.events.INIT, function() else vis.lexers = require('lexer') end + + vis:command("set theme ".. (vis.ui.colors <= 16 and "default-16" or "default-256")) end) vis.events.subscribe(vis.events.THEME_CHANGE, function(name) diff --git a/lua/visrc.lua b/lua/visrc.lua index 13bd7f7..b344c47 100644 --- a/lua/visrc.lua +++ b/lua/visrc.lua @@ -5,7 +5,6 @@ require('plugins/textobject-lexer') 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")) end) vis.events.subscribe(vis.events.WIN_OPEN, function(win) |
