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:
parent
e029d6343c
commit
921d96cb10
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user