aboutsummaryrefslogtreecommitdiff
path: root/.config/vis/visrc.lua
diff options
context:
space:
mode:
authordacctal <dacctal@symlinx.net>2026-05-05 22:17:34 +0000
committerdacctal <dacctal@symlinx.net>2026-05-05 22:17:34 +0000
commit4023c888138f05a1d7829605b7b884144fece662 (patch)
treee1610c887a9700643a61c9ea8b1d248cd9d7dbfd /.config/vis/visrc.lua
parentd33d907f53c50d323eca75c4bfc02ab5b989b30a (diff)
updated config for modal
Diffstat (limited to '.config/vis/visrc.lua')
-rw-r--r--.config/vis/visrc.lua28
1 files changed, 21 insertions, 7 deletions
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
index 74bfa51..84b7e7d 100644
--- a/.config/vis/visrc.lua
+++ b/.config/vis/visrc.lua
@@ -1,17 +1,20 @@
require('vis')
-local lightyellow = '#efbf71'
-local lightgray = '#9a9c8b'
-local darkgray = '#1e1f1e'
+ -- config --
--- global config
+-- global
vis.events.subscribe(vis.events.INIT, function()
vis:command("set theme caelus")
end)
--- per-window config
+-- per-window
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
vis:command("set tabwidth 2")
- vis:command("set numbers true")
+ vis:command("set numbers true") vis:command("set autoindent true")
+ vis:command("set showspaces false")
+ vis:command("set showtabs false")
+ vis:command("set expandtab on")
+ vis:command("set shell /usr/bin/env sh")
+ vis:map(vis.modes.VISUAL," y", '"+y"')
vis:map(vis.modes.NORMAL, " fm", function()
vis:command("open .")
vis:feedkeys("<C-w>k")
@@ -22,7 +25,7 @@ end)
-- plugins --
-- modal
-require('plugins/modal')
+local modal = require('plugins/vis-modal')
-- vis-autoclose
local autoclose = require('plugins/vis-autoclose')
-- colorizer
@@ -33,3 +36,14 @@ colorizer.six = true
local completefilename = require('plugins/complete-filename')
-- vis-lspc
local lsp = require('plugins/vis-lspc')
+--lsp.ls_map.clangd = {
+-- formatting_options = {tabSize = 2, insertSpaces = false}
+--}
+lsp.ls_map.lua = {
+ name = 'lua-language-server',
+ cmd = 'lua-language-server',
+ settings = {
+ Lua = {diagnostics = { globals = {'vis'}}, telemetry = {enable = false}},
+ },
+ formatting_options = {tabSize = 2, insertSpaces = true},
+}