vis-config

lua scripts to configure vis editor

git clone https://9o.is/git/vis-config.git

commit 06764931cb49c0e1ea1a6bf8572419200338de4c
parent 65e4cbe7f693d3e89e661c2c2b5d9a270e334de5
Author: Jul <jul@9o.is>
Date:   Fri, 20 Feb 2026 22:26:22 +0800

add lspc enabled flag

Diffstat:
Mlib/utils.lua | 6+++++-
Mvisrc.lua | 1+
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/utils.lua b/lib/utils.lua @@ -3,7 +3,11 @@ function exists(prog) end function start_lspc(lspc, name) - if not lspc.autostart and exists(name) and not lspc.running[name] then + if not (lspc.enabled and exists(name)) then + return false + end + + if not lspc.autostart and not lspc.running[name] then vis:command('lspc-start-server') return true end diff --git a/visrc.lua b/visrc.lua @@ -11,6 +11,7 @@ require('lib/search') require('lib/utils') local lspc = require('plugins/vis-lspc') +lspc.enabled = true lspc.autostart = false lspc.menu_cmd = 'fzy' lspc.confirm_cmd = 'fzy'