commit e7d4fc3fad59ede64d4ac8d0ad43d784bc8b00cc parent 65699c67ef42ae800facf7ba73b02e66a6baf41d Author: mrgrouse <bdmfegys@duck.com> Date: Mon, 4 Aug 2025 21:17:04 -0400 visrc.lua: make vis-plug automatically install on startup if not found Diffstat:
| M | visrc.lua | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/visrc.lua b/visrc.lua @@ -13,7 +13,12 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) end) -- vis-plug -- -local plug = require('plugins/vis-plug') +-- this automatically installs vis-plug if it is not found +local plug = (function() if not pcall(require, 'plugins/vis-plug') then + os.execute('git clone --quiet https://github.com/erf/vis-plug ' .. + (os.getenv('XDG_CONFIG_HOME') or os.getenv('HOME') .. '/.config') + .. '/vis/plugins/vis-plug') +end return require('plugins/vis-plug') end)() local plugins = { { 'thimc/vis-colorizer' },