vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit e363ff8fa513c9f3d405d3e1c54c0a5202101faa parent 1ac31b87f9853bcc48a9b434de37a40f67d1ffe1 Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 14 Dec 2016 21:44:52 +0100 lua: make sure we always load a default theme Diffstat:
| M | lua/vis-std.lua | | | 2 | ++ |
| M | lua/visrc.lua | | | 1 | - |
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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 @@ -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)