aboutsummaryrefslogtreecommitdiff
path: root/lua/visrc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/visrc.lua')
-rw-r--r--lua/visrc.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/lua/visrc.lua b/lua/visrc.lua
index dcd4d8e..2c8ff78 100644
--- a/lua/visrc.lua
+++ b/lua/visrc.lua
@@ -2,13 +2,10 @@ require("utils")
vis.events = {}
vis.events.win_open = function(win)
+ -- test.in file passed to vis
in_file = win.file.name
+ -- use the corresponding test.lua file
lua_file = string.gsub(in_file, '%.in$', '')
require(lua_file)
--- These both seem to cause crashes at the moment.
--- vis:command('q!')
---
--- vis:map(vis.MODE_NORMAL, "Q", function()
--- vis:command('q!')
--- end)
+ vis:command('q!')
end