From 59eaf188768fa9c44aecb4a6216b87efd5e5d0ec Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Sat, 16 Nov 2024 21:22:23 -0600 Subject: [PATCH] ADD: visrc --- vis/visrc.lua | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 vis/visrc.lua diff --git a/vis/visrc.lua b/vis/visrc.lua new file mode 100644 index 0000000..47ac372 --- /dev/null +++ b/vis/visrc.lua @@ -0,0 +1,50 @@ +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) + + + + -- 2.51.2