aboutsummaryrefslogtreecommitdiff
path: root/lua/visrc.lua
blob: 13bd7f7e417a6275bfb5b2e1568825de5862756c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- load standard vis module, providing parts of the Lua API
require('vis')
require('plugins/filetype')
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)
	-- Your per window configuration options e.g.
	-- vis:command('set number')
end)