diff --git a/lua/spacevim/plugin/runner.lua b/lua/spacevim/plugin/runner.lua index cef0a7079..767a7435c 100644 --- a/lua/spacevim/plugin/runner.lua +++ b/lua/spacevim/plugin/runner.lua @@ -599,7 +599,7 @@ local function on_backgroud_exit(id, code, single) start_time = 0, exit_code = 0, } - local end_time = vim.fn.reltime(status.start_time) + end_time = vim.fn.reltime(status.start_time) local problem_matcher = task_problem_matcher['task' .. id] or {} local output if problem_matcher.useStdout then diff --git a/lua/spacevim/plugin/statusline.lua b/lua/spacevim/plugin/statusline.lua index 9f8306b61..76f21cefc 100644 --- a/lua/spacevim/plugin/statusline.lua +++ b/lua/spacevim/plugin/statusline.lua @@ -498,6 +498,7 @@ local function simple_name(name) .. name .. ' %#SpaceVim_statusline_b_SpaceVim_statusline_c#' .. lsep + .. '%#SpaceVim_statusline_c#' end local special_statusline = { @@ -643,8 +644,14 @@ local special_statusline = { HelpDescribe = function() return simple_name('HelpDescribe') end, - SpaceVimRunner = function() end, -- todo - SpaceVimREPL = function() end, -- todo + SpaceVimRunner = function() + return simple_name('Runner') .. ' %{SpaceVim#plugins#runner#status()}' + end, + SpaceVimREPL = function() + + return simple_name('REPL') .. ' %{SpaceVim#plugins#repl#status()}' + + end, VimMailClient = function() end, -- todo SpaceVimQuickFix = function() return simple_name('SpaceVimQuickFix')