configuration/config/vis/visrc.lua

29 lines
760 B
Lua
Raw Normal View History

2017-10-04 15:11:16 +02:00
-- 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')
2017-10-10 14:14:40 +02:00
vis:command('set escdelay 1')
2017-10-04 15:11:16 +02:00
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)