mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
feat(tasks): display background or not
This commit is contained in:
parent
3db40b345a
commit
9b5703af57
@ -24,6 +24,7 @@ local function show_taskconfig(opts)
|
|||||||
separator = ' ',
|
separator = ' ',
|
||||||
items = {
|
items = {
|
||||||
{ width = 25 },
|
{ width = 25 },
|
||||||
|
{ width = 10 },
|
||||||
{ width = 15 },
|
{ width = 15 },
|
||||||
{ remaining = true },
|
{ remaining = true },
|
||||||
},
|
},
|
||||||
@ -43,9 +44,15 @@ local function show_taskconfig(opts)
|
|||||||
elseif entry.value.task.isDetected == 1 then
|
elseif entry.value.task.isDetected == 1 then
|
||||||
task_type = 'detected'
|
task_type = 'detected'
|
||||||
end
|
end
|
||||||
|
-- @todo the text maybe changed
|
||||||
|
local background = 'no-background'
|
||||||
|
if entry.value.task.isBackground == 1 then
|
||||||
|
background = 'background'
|
||||||
|
end
|
||||||
return displayer({
|
return displayer({
|
||||||
{ '[' .. entry.value.name .. ']', 'TelescopeResultsVariable' },
|
{ '[' .. entry.value.name .. ']', 'TelescopeResultsVariable' },
|
||||||
{ '[' .. task_type .. ']', 'TelescopeResultsNumber' },
|
{ '[' .. task_type .. ']', 'TelescopeResultsNumber' },
|
||||||
|
{ '[' .. background .. ']', 'TelescopeResultsNumber' },
|
||||||
{ desc, 'TelescopeResultsComment' },
|
{ desc, 'TelescopeResultsComment' },
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user