mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	Merge pull request #500 from diniamo/lazy-before-setup
wrapper/lazy: add beforeSetup option
This commit is contained in:
		
				commit
				
					
						8bab0497fb
					
				
			
		
					 2 changed files with 10 additions and 0 deletions
				
			
		|  | @ -76,6 +76,7 @@ | |||
|         else | ||||
|           mkLuaInline '' | ||||
|             function() | ||||
|               ${optionalString (spec.beforeSetup != null) spec.beforeSetup} | ||||
|               ${ | ||||
|               optionalString (spec.setupModule != null) | ||||
|               "require(${toJSON spec.setupModule}).setup(${toLuaObject spec.setupOpts})" | ||||
|  |  | |||
|  | @ -74,6 +74,15 @@ | |||
|         ''; | ||||
|       }; | ||||
| 
 | ||||
|       beforeSetup = mkOption { | ||||
|         type = nullOr lines; | ||||
|         default = null; | ||||
|         description = '' | ||||
|           Lua code to run after the plugin is loaded, but before the setup | ||||
|           function is called. | ||||
|         ''; | ||||
|       }; | ||||
| 
 | ||||
|       setupModule = mkOption { | ||||
|         type = nullOr str; | ||||
|         default = null; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub
					GitHub