feat(ascii): Lazy load ascii.nvim plugin

This commit is contained in:
rajvatsal 2024-01-07 11:22:02 +05:30
parent 46b5c9edd8
commit 781ed08574
2 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ return {
config = function() config = function()
local alpha = require("alpha") local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard") local dashboard = require("alpha.themes.dashboard")
local fortune = require("alpha.fortune")
math.randomseed(os.time()) math.randomseed(os.time())
@ -314,7 +313,7 @@ return {
--[[local handle = assert(io.popen('fortune -s')) --[[local handle = assert(io.popen('fortune -s'))
local fortune = handle:read("*all") local fortune = handle:read("*all")
handle:close()]] handle:close()]]
dashboard.section.footer.val = getFortune() dashboard.section.footer.val = getFortune() -- require(alpha.fortune)()
dashboard.section.header.opts.hl = "Error" dashboard.section.header.opts.hl = "Error"
dashboard.section.buttons.opts.hl = "Debug" dashboard.section.buttons.opts.hl = "Debug"
dashboard.section.footer.opts.hl = "Conceal" dashboard.section.footer.opts.hl = "Conceal"

View File

@ -1 +1 @@
return { 'MaximilianLloyd/ascii.nvim', dependencies = 'MunifTanjim/nui.nvim' } return { 'MaximilianLloyd/ascii.nvim', dependencies = 'MunifTanjim/nui.nvim', lazy = true }