From d00e7de931751d78b2771c3424230da6692cf078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 14 Dec 2016 21:44:52 +0100 Subject: lua: make sure we always load a default theme --- lua/vis-std.lua | 2 ++ lua/visrc.lua | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3