up
This commit is contained in:
@@ -60,32 +60,6 @@ return {
|
||||
require('mini.starter').gen_hook.adding_bullet ' ',
|
||||
require('mini.starter').gen_hook.aligning('center', 'center'),
|
||||
},
|
||||
config = function()
|
||||
-- close Lazy and re-open when starter is ready
|
||||
if vim.o.filetype == 'lazy' then
|
||||
vim.cmd.close()
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'MiniStarterOpened',
|
||||
callback = function()
|
||||
require('lazy').show()
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'LazyVimStarted',
|
||||
callback = function(ev)
|
||||
local stats = require('lazy').stats()
|
||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
||||
local pad_footer = string.rep(' ', 8)
|
||||
starter.config.footer = pad_footer .. '⚡ Neovim loaded ' .. stats.count .. ' plugins in ' .. ms .. 'ms'
|
||||
-- INFO: based on @echasnovski's recommendation (thanks a lot!!!)
|
||||
if vim.bo[ev.buf].filetype == 'ministarter' then
|
||||
pcall(starter.refresh)
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
-- Simple way to visualize and work with indent scope
|
||||
|
||||
Reference in New Issue
Block a user