mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-14 11:24:38 +02:00
feat(alpha): improved colors
This commit is contained in:
parent
108c471ab5
commit
0266bb851d
1 changed files with 15 additions and 6 deletions
|
@ -68,10 +68,19 @@ return {
|
||||||
dashboard.button("c", " " .. " Config", ":e $MYVIMRC <CR>"),
|
dashboard.button("c", " " .. " Config", ":e $MYVIMRC <CR>"),
|
||||||
dashboard.button("q", " " .. " Quit", ":qa<CR>"),
|
dashboard.button("q", " " .. " Quit", ":qa<CR>"),
|
||||||
}
|
}
|
||||||
dashboard.section.footer.opts.hl = "Type"
|
for _, button in ipairs(dashboard.section.buttons.val) do
|
||||||
dashboard.section.header.opts.hl = "Include"
|
button.opts.hl = "AlphaButtons"
|
||||||
dashboard.section.buttons.opts.hl = "Keyword"
|
button.opts.hl_shortcut = "AlphaShortcut"
|
||||||
dashboard.opts.opts.noautocmd = true
|
end
|
||||||
|
dashboard.section.footer.opts.hl = "AlphaFooter"
|
||||||
|
dashboard.section.header.opts.hl = "AlphaHeader"
|
||||||
|
dashboard.section.buttons.opts.hl = "AlphaButtons"
|
||||||
|
dashboard.opts.layout[1].val = 8
|
||||||
|
|
||||||
|
if vim.bo[0].filetype == "lazy" then
|
||||||
|
vim.notify("Missing plugins installed!", vim.log.levels.INFO, { title = "LazyVim" })
|
||||||
|
vim.cmd.close()
|
||||||
|
end
|
||||||
|
|
||||||
require("alpha").setup(dashboard.opts)
|
require("alpha").setup(dashboard.opts)
|
||||||
|
|
||||||
|
@ -80,7 +89,7 @@ return {
|
||||||
callback = function()
|
callback = function()
|
||||||
local stats = require("lazy").stats()
|
local stats = require("lazy").stats()
|
||||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
||||||
dashboard.section.footer.val = "🎉 Neovim loaded " .. stats.count .. " plugins in " .. ms .. "ms"
|
dashboard.section.footer.val = "⚡ Neovim loaded " .. stats.count .. " plugins in " .. ms .. "ms"
|
||||||
pcall(vim.cmd.AlphaRedraw)
|
pcall(vim.cmd.AlphaRedraw)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue