aboutsummaryrefslogtreecommitdiff
path: root/.config/vis/visrc.lua
blob: 8e16776ab2c77bebcf718709d6eb5fe49c05bfcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- load standard vis module, providing parts of the Lua API, sets _G.vis
require('vis')

-- global configuration options
vis.events.subscribe(vis.events.INIT, function()
	vis:command("set theme caelus")
end)
-- per-window configuration options
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
	vis:command("set tabwidth 2")
	vis:command("set numbers true")
	vis:map(vis.modes.NORMAL, " fm", function()
		vis:command("open .")
		vis:feedkeys("<C-w>k")
		vis:command("wq!")
	end, "")
end)

								-- plugins --

-- vis-autoclose
local autoclose = require('plugins/vis-autoclose')
-- colorizer
local colorizer = require('plugins/vis-colorizer')
colorizer.three = false
colorizer.six   = true
-- complete-filename
local completefilename = require('plugins/complete-filename')
-- vis-lspc
local lsp = require('plugins/vis-lspc')