goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.82k stars 109 forks source link

Fix text highlighting spilling over to next line #123

Closed baodrate closed 2 years ago

baodrate commented 2 years ago

Two small fixes

Before and after screenshots below w/ plain startify theme

Diff of modifications to `startify.lua` ```diff diff --git a/lua/alpha/themes/startify.lua b/lua/alpha/themes/startify.lua index c38982e..8a6be2d 100644 --- a/lua/alpha/themes/startify.lua +++ b/lua/alpha/themes/startify.lua @@ -177,7 +177,9 @@ local section = { val = { { type = "padding", val = 1 }, { type = "text", val = "MRU", opts = { hl = "SpecialComment" } }, - { type = "padding", val = 1 }, + { type = "text", val = "Plain" }, + { type = "text", val = "Centered", opts = { position = "center" } }, + { type = "text", val = "Highlighted", opts = { hl = "Number" } }, { type = "group", val = function() @@ -191,7 +193,6 @@ local section = { val = { { type = "padding", val = 1 }, { type = "text", val = mru_title, opts = { hl = "SpecialComment", shrink_margin = false } }, - { type = "padding", val = 1 }, { type = "group", val = function() ```
Before After
goolord commented 2 years ago

ty!