visrc.lua (676B)
- require("vis")
- vis.events.subscribe(vis.events.WIN_OPEN, function(win)
- vis:command('set rnu')
- vis:command('set showeof off')
- vis:command('set showtabs')
- vis:command('set shownewline')
- vis:command('set autoindent')
- vis:command('set theme gruvbox')
- vis:command('set tabwidth 4')
- vis:command('set colorcolumn 80')
- end)
- -- theme configuration
- is_dark = true
- --contrast_dark = 'hard'
- --contrast_light = 'hard'
- gruvbox_comment_hard = true
- table.insert(vis.ftdetect.ignoresuffixes, "%.in$")
- --vis.ftdetect.filetypes.xml.mime = { "application/xml", "application/%+xml$" }
- vis.ftdetect.filetypes.xml.detect = function(_, data)
- return data:match("^<%?xml [^%?]*%?>")
- end