configuration/config/vis/visrc.lua
Felix Van der Jeugt 6822d91e94
shorter escdelay
2017-10-10 14:14:40 +02:00

29 lines
760 B
Lua
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 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(" ")
end)