mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	feat: new option to enable lua module loader
This commit is contained in:
		
					parent
					
						
							
								1678ef4738
							
						
					
				
			
			
				commit
				
					
						425b55167e
					
				
			
		
					 2 changed files with 5 additions and 0 deletions
				
			
		|  | @ -144,5 +144,7 @@ with builtins; { | |||
|       default = true; | ||||
|       description = "Follow editorconfig rules in current directory"; | ||||
|     }; | ||||
| 
 | ||||
|     enableLuaLoader = mkEnableOption "Enable the experimental Lua module loader to speed up the start up process"; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -9,6 +9,9 @@ with builtins; let | |||
| 
 | ||||
|   wrapLuaConfig = luaConfig: '' | ||||
|     lua << EOF | ||||
|     ${optionalString cfg.enableLuaLoader '' | ||||
|       vim.loader.enable() | ||||
|     ''} | ||||
|     ${luaConfig} | ||||
|     EOF | ||||
|   ''; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
				Ching Pei Yang