mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 09:18:51 +02:00
fix(alpha): make sure alpha renders when Lazy is open after installing missing plugins
This commit is contained in:
parent
3b700fc28c
commit
670daaadc3
1 changed files with 7 additions and 4 deletions
|
@ -98,12 +98,15 @@ return {
|
||||||
dashboard.section.buttons.opts.hl = "AlphaButtons"
|
dashboard.section.buttons.opts.hl = "AlphaButtons"
|
||||||
dashboard.opts.layout[1].val = 8
|
dashboard.opts.layout[1].val = 8
|
||||||
|
|
||||||
if vim.bo[0].filetype == "lazy" then
|
if vim.o.filetype == "lazy" then
|
||||||
vim.notify("Missing plugins installed!", vim.log.levels.INFO, { title = "LazyVim" })
|
-- close and re-open Lazy after showing alpha
|
||||||
|
vim.notify("Missing plugins installed!", vim.log.levels.INFO, { title = "lazy.nvim" })
|
||||||
vim.cmd.close()
|
vim.cmd.close()
|
||||||
end
|
|
||||||
|
|
||||||
require("alpha").setup(dashboard.opts)
|
require("alpha").setup(dashboard.opts)
|
||||||
|
require("lazy").show()
|
||||||
|
else
|
||||||
|
require("alpha").setup(dashboard.opts)
|
||||||
|
end
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("User", {
|
vim.api.nvim_create_autocmd("User", {
|
||||||
pattern = "LazyVimStarted",
|
pattern = "LazyVimStarted",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue