From 7034190f5a29147e2f8831fb0e2423cc640c417c Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 17 Feb 2024 01:35:36 +0100 Subject: Added plugins to the vis config --- .config/vis/visrc.lua | 22 ++++++++++++++++++---- dots | 4 ++-- 2 files changed, 20 insertions(+), 6 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) diff --git a/dots b/dots index 532e6c7..00d7fe2 100755 --- a/dots +++ b/dots @@ -49,8 +49,8 @@ list() { case $1 in -get) get;; -put) put;; +get|pull) get;; +put|push) put;; clear) clear;; list) list;; *) exit 1;; -- cgit v1.1