mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
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:
parent
24af74eed6
commit
2c2b6f200c
1 changed files with 4 additions and 4 deletions
|
@ -267,17 +267,17 @@ function X:extra(extra)
|
||||||
self.text:append(" "):append(LazyConfig.options.ui.icons.favorite or " ", "LazyCommit")
|
self.text:append(" "):append(LazyConfig.options.ui.icons.favorite or " ", "LazyCommit")
|
||||||
end
|
end
|
||||||
if extra.source.name ~= "LazyVim" then
|
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
|
end
|
||||||
for _, import in ipairs(extra.imports) do
|
for _, import in ipairs(extra.imports) do
|
||||||
import = import:gsub("^lazyvim.plugins.extras.", "")
|
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
|
end
|
||||||
for _, plugin in ipairs(extra.plugins) do
|
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
|
end
|
||||||
for _, plugin in ipairs(extra.optional) do
|
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
|
end
|
||||||
if extra.desc then
|
if extra.desc then
|
||||||
self.text:nl():append(" " .. extra.desc, "LazyComment")
|
self.text:nl():append(" " .. extra.desc, "LazyComment")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue