From 11251ed124ca51a2eebe614a16346864016e68e2 Mon Sep 17 00:00:00 2001 From: robin Date: Tue, 26 May 2026 16:02:18 +0200 Subject: [PATCH] plugin: fix `:Shell` progress & lint --- config/plugin/shell.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/plugin/shell.lua b/config/plugin/shell.lua index 1d443d8..3d1b0c9 100644 --- a/config/plugin/shell.lua +++ b/config/plugin/shell.lua @@ -10,20 +10,19 @@ vim.api.nvim_create_user_command("Shell", function(opts) return vim.notify("shell cmd empty", vim.log.levels.WARN) end + ---@type [string,(string|integer)?][] local cmdmsg = { { "command " }, { opts.args, "@markup.raw" } } local pg = { source = "shell", title = "shell cmd", kind = "progress", - percent = 0, status = "running", } table.insert(cmdmsg, { " started" }) pg.id = vim.api.nvim_echo(cmdmsg, true, pg) vim.system({ vim.o.shell, vim.o.shellcmdflag, opts.args }, {}, function(o) - pg.percent = 100 if not o.code or o.code ~= 0 then pg.status = "failed" cmdmsg[3] = { (" exited with code %d SIG%d"):format(o.code, o.signal) } -- 2.51.2