1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 11:20:06 +08:00

fix(statusline): fix code runner and repl stl

This commit is contained in:
Eric Wong 2024-06-12 11:57:20 +08:00
parent e029d6343c
commit 921d96cb10
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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')