summaryrefslogtreecommitdiff
path: root/.config/vis/visrc.lua
blob: 6e2edb4f70c6603a6a752f07cd49d19fd8a1be33 (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
require "vis"


local function plugin (name)
	local ok, loaded = pcall(require, name)
	if not ok then
		vis:message(loaded)
	end
	return loaded
end


plugin "plugins.hare_detect"
plugin "plugins/vis-spellcheck"


vis.events.subscribe(vis.events.WIN_OPEN, function (win)
	vis:command "set number"
	vis:command "set relative"
	vis:command "set show-tabs"
	vis:command "set colorcolumn 121"
	vis:command "set autoindent"
	vis:command "set tabwidth 4"
end)