summaryrefslogtreecommitdiff
path: root/.config/vis
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-02-17 01:35:36 +0100
committerAki <please@ignore.pl>2024-02-17 01:35:36 +0100
commit7034190f5a29147e2f8831fb0e2423cc640c417c (patch)
tree9160d91eb44011d81244b59799b31ec634eb3e31 /.config/vis
parentb4fb2a19abb556bae5def910eaeed05e4dd1e109 (diff)
downloaddots-7034190f5a29147e2f8831fb0e2423cc640c417c.zip
dots-7034190f5a29147e2f8831fb0e2423cc640c417c.tar.gz
dots-7034190f5a29147e2f8831fb0e2423cc640c417c.tar.bz2
Added plugins to the vis config
Diffstat (limited to '.config/vis')
-rw-r--r--.config/vis/visrc.lua22
1 files changed, 18 insertions, 4 deletions
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
index 858f2b4..6e2edb4 100644
--- a/.config/vis/visrc.lua
+++ b/.config/vis/visrc.lua
@@ -1,10 +1,24 @@
require "vis"
-vis.events.subscribe(vis.events.WIN_OPEN, function (window)
- vis:command "set autoindent"
- vis:command "set colorcolumn 121"
+local function plugin (name)
+ local ok, loaded = pcall(require, name)
+ if not ok then
+ vis:message(loaded)
+ end
+ return loaded
+end
+
+
+plugin "plugins.hare_detect"
+plugin "plugins/vis-spellcheck"
+
+
+vis.events.subscribe(vis.events.WIN_OPEN, function (win)
vis:command "set number"
- vis:command "set relativenumber"
+ vis:command "set relative"
vis:command "set show-tabs"
+ vis:command "set colorcolumn 121"
+ vis:command "set autoindent"
+ vis:command "set tabwidth 4"
end)