mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-11-04 08:21:13 +00:00 
			
		
		
		
	refactor: moved all plugin state to Plugin._
This commit is contained in:
		
					parent
					
						
							
								352dbadcb6
							
						
					
				
			
			
				commit
				
					
						28af1e1ac3
					
				
			
		
					 9 changed files with 49 additions and 46 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@ local M = {}
 | 
			
		|||
 | 
			
		||||
M.run = {
 | 
			
		||||
  needed = function(plugin)
 | 
			
		||||
    return plugin.dirty and (plugin.opt == false or plugin.run)
 | 
			
		||||
    return plugin._.dirty and (plugin.opt == false or plugin.run)
 | 
			
		||||
  end,
 | 
			
		||||
  run = function(self)
 | 
			
		||||
    Loader.load(self.plugin, { task = "run" }, { load_start = true })
 | 
			
		||||
| 
						 | 
				
			
			@ -47,13 +47,13 @@ M.clean = {
 | 
			
		|||
      vim.loop.fs_unlink(dir)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    self.plugin.installed = false
 | 
			
		||||
    self.plugin._.installed = false
 | 
			
		||||
  end,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
M.docs = {
 | 
			
		||||
  needed = function(plugin)
 | 
			
		||||
    return plugin.dirty
 | 
			
		||||
    return plugin._.dirty
 | 
			
		||||
  end,
 | 
			
		||||
  run = function(self)
 | 
			
		||||
    local docs = self.plugin.dir .. "/doc/"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue