Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ADD: visrc

+50
+50
vis/visrc.lua
··· 1 + require('vis') 2 + 3 + local plug = require('plugins/vis-plug') 4 + 5 + local plugins = { 6 + { 'timoha/vis-acme', theme = true, file = 'acme' }, 7 + { 'milhnl/vis-format' }, 8 + { url = 'https://git.cepl.eu/cgit/vis/vis-fzf-open' }, 9 + { url = 'https://gitlab.com/muhq/vis-lspc.git' }, 10 + { url = 'https://repo.or.cz/vis-parkour.git', alias = 'vis-parkour' } 11 + } 12 + 13 + plug.init(plugins, true) 14 + 15 + 16 + 17 + 18 + 19 + 20 + vis.events.subscribe(vis.events.INIT, function() 21 + local format = require('plugins/vis-format') 22 + vis:map(vis.modes.NORMAL, '<C-p>', ':fzf<Enter>') 23 + vis:map(vis.modes.NORMAL, '=', format.apply) 24 + local lspc = require('plugins/vis-lspc') 25 + if next(lspc) then 26 + lspc.logging = true 27 + lspc.log_file = "/tmp/lspc.log" 28 + 29 + lspc.ls_map.rust = { 30 + name = "rust", 31 + cmd = "rust-analyzer", 32 + formatting_options = {tabSize = 4, insertSpaces = true} 33 + } 34 + end 35 + end) 36 + 37 + 38 + vis.events.subscribe(vis.events.WIN_OPEN, function(win) 39 + --per-window configuration-- 40 + --vis:command('set number') 41 + vis:command('set showtab on') 42 + vis:command('set showspace on') 43 + vis:command('set autoindent on') 44 + vis:command('set cursorline on') 45 + vis:command('set tabwidth 4') 46 + end) 47 + 48 + 49 + 50 +