fix(ui): remove extra space in extras ui (#3481)

Remove extra space between icon and text (for source label).

## Before:
<img width="1893" alt="image"
src="7778e103-729a-4231-bb23-0482ae9d8506">

## After:
<img width="1893" alt="image"
src="b8e6b4d3-2554-4312-b7d3-7fd5b8c146d4">
This commit is contained in:
Aleksey Imuzov 2024-06-06 08:09:58 +04:00 committed by GitHub
parent 24af74eed6
commit 2c2b6f200c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -267,17 +267,17 @@ function X:extra(extra)
self.text:append(" "):append(LazyConfig.options.ui.icons.favorite or "", "LazyCommit")
end
if extra.source.name ~= "LazyVim" then
self.text:append(" "):append(LazyConfig.options.ui.icons.event .. " " .. extra.source.name, "LazyReasonEvent")
self.text:append(" "):append(LazyConfig.options.ui.icons.event .. extra.source.name, "LazyReasonEvent")
end
for _, import in ipairs(extra.imports) do
import = import:gsub("^lazyvim.plugins.extras.", "")
self.text:append(" "):append(LazyConfig.options.ui.icons.plugin .. "" .. import, "LazyReasonStart")
self.text:append(" "):append(LazyConfig.options.ui.icons.plugin .. import, "LazyReasonStart")
end
for _, plugin in ipairs(extra.plugins) do
self.text:append(" "):append(LazyConfig.options.ui.icons.plugin .. "" .. plugin, "LazyReasonPlugin")
self.text:append(" "):append(LazyConfig.options.ui.icons.plugin .. plugin, "LazyReasonPlugin")
end
for _, plugin in ipairs(extra.optional) do
self.text:append(" "):append(LazyConfig.options.ui.icons.plugin .. "" .. plugin, "LazyReasonRequire")
self.text:append(" "):append(LazyConfig.options.ui.icons.plugin .. plugin, "LazyReasonRequire")
end
if extra.desc then
self.text:nl():append(" " .. extra.desc, "LazyComment")