require('vis') local plug = require('plugins/vis-plug') local plugins = { { 'timoha/vis-acme', theme = true, file = 'acme' }, { 'milhnl/vis-format' }, { url = 'https://git.cepl.eu/cgit/vis/vis-fzf-open' }, { url = 'https://gitlab.com/muhq/vis-lspc.git' }, { url = 'https://repo.or.cz/vis-parkour.git', alias = 'vis-parkour' } } plug.init(plugins, true) vis.events.subscribe(vis.events.INIT, function() local format = require('plugins/vis-format') vis:map(vis.modes.NORMAL, '', ':fzf') vis:map(vis.modes.NORMAL, '=', format.apply) local lspc = require('plugins/vis-lspc') if next(lspc) then lspc.logging = true lspc.log_file = "/tmp/lspc.log" lspc.ls_map.rust = { name = "rust", cmd = "rust-analyzer", formatting_options = {tabSize = 4, insertSpaces = true} } end end) vis.events.subscribe(vis.events.WIN_OPEN, function(win) --per-window configuration-- --vis:command('set number') vis:command('set showtab on') vis:command('set showspace on') vis:command('set autoindent on') vis:command('set cursorline on') vis:command('set tabwidth 4') end)