From b33fe9f37d6a9c672650df1c61e897f2582ef563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 8 Dec 2016 09:21:15 +0100 Subject: vis-lua: expose init event and use it to set default theme The init event is emitted immediately after `visrc.lua` has been sourced, but before any other events have occured, in particular the command line arguments have not yet been processed. Close #422 --- lua/vis-std.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'lua/vis-std.lua') diff --git a/lua/vis-std.lua b/lua/vis-std.lua index a46896a..831f64b 100644 --- a/lua/vis-std.lua +++ b/lua/vis-std.lua @@ -115,5 +115,3 @@ vis.events.subscribe(vis.events.WIN_STATUS, function(win) local right = ' ' .. table.concat(right_parts, " « ") .. ' ' win:status(left, right); end) - -vis:command("set theme ".. (vis.ui.colors <= 16 and "default-16" or "default-256")) -- cgit v1.2.3