configuration/config/vis/visrc.lua
2017-10-20 10:00:58 +02:00

31 lines
825 B
Lua

-- load standard vis module, providing parts of the Lua API
require('vis')
require('plugins/complete-word')
require('plugins/myfiletype')
vis.events.subscribe(vis.events.INIT, function()
-- Your global configuration options
end)
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
-- Your per window configuration options e.g.
-- vis:command('set number')
vis:command('set tabwidth 4')
vis:command('set autoindent on')
vis:command('set expandtab on')
vis:command('set show-tabs on')
vis:command('set number')
vis:command('set theme dark-16')
vis:command('set escdelay 1')
end)
vis:map(vis.modes.NORMAL, ";l", function()
local out = io.popen("fzf"):read()
if out then
vis:command(string.format('open %s', out))
end
vis:feedkeys("<vis-redraw>")
end)
vis:map(vis.modes.NORMAL, ";;", "<vis-window-next>")