diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-10-02 01:23:00 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-10-02 01:23:00 -0700 |
| commit | 503202f70d52fa5dceecf061d78f16c6bc61b1dd (patch) | |
| tree | fba97de904c650494e1cb297c85f2e10cb4bbd44 | |
| parent | 73dc35d886da131b357d2adfe9a1fc1479008f8a (diff) | |
Using vis now
| -rw-r--r-- | arch/vis/.config/vis/visrc.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/vis/.config/vis/visrc.lua b/arch/vis/.config/vis/visrc.lua new file mode 100644 index 0000000..154f61e --- /dev/null +++ b/arch/vis/.config/vis/visrc.lua @@ -0,0 +1,34 @@ +require('vis') + +-- global config +vis.events.subscribe(vis.events.INIT, function() + vis.options.autoindent = true + + vis:unmap(vis.modes.NORMAL, "<C- >") + vis:unmap(vis.modes.INSERT, "<C- >") + +end) + +-- window local config +vis.events.subscribe(vis.events.WIN_OPEN, function(win) + win.options.tabwidth = 4 + win.options.numbers = true + win.options.relativenumbers = true + win.options.expandtab = true + + -- key mappings + vis:map(vis.modes.NORMAL, "<C-s>", function() + vis:command("w") + end, "") + vis:map(vis.modes.NORMAL, " bd", function() + vis:command("q!") + end, "") + vis:map(vis.modes.INSERT, "<C-e>", function() + vis:command("lspc-completion") + end, "") +end) + +local autoclose = require('plugins/vis-autoclose') +local backspace = require('plugins/vis-backspace') + +local lsp = require('plugins/vis-lspc') |