diff options
Diffstat (limited to '.config/vis/visrc.lua')
| -rw-r--r-- | .config/vis/visrc.lua | 28 |
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}, +} |
