feat(ascii): Lazy load ascii.nvim plugin
This commit is contained in:
		
							parent
							
								
									46b5c9edd8
								
							
						
					
					
						commit
						781ed08574
					
				| 
						 | 
					@ -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"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
return { 'MaximilianLloyd/ascii.nvim', dependencies = 'MunifTanjim/nui.nvim' }
 | 
					return { 'MaximilianLloyd/ascii.nvim', dependencies = 'MunifTanjim/nui.nvim', lazy = true }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue