mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	make extraPluginType singular instead of a list
This commit is contained in:
		
					parent
					
						
							
								2167481cc2
							
						
					
				
			
			
				commit
				
					
						afec39f3d9
					
				
			
		
					 2 changed files with 9 additions and 9 deletions
				
			
		|  | @ -89,20 +89,20 @@ with lib; let | ||||||
|     "nvim-dap-ui" |     "nvim-dap-ui" | ||||||
|   ]; |   ]; | ||||||
|   # You can either use the name of the plugin or a package. |   # You can either use the name of the plugin or a package. | ||||||
|   pluginsType = with types; |   pluginType = with types; | ||||||
|     listOf ( |  | ||||||
|     nullOr ( |     nullOr ( | ||||||
|       either |       either | ||||||
|         (enum availablePlugins) |  | ||||||
|       package |       package | ||||||
|       ) |       (enum availablePlugins) | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
|  |   pluginsType = types.listOf pluginType; | ||||||
|  | 
 | ||||||
|   extraPluginType = with types; |   extraPluginType = with types; | ||||||
|     submodule { |     submodule { | ||||||
|       options = { |       options = { | ||||||
|         package = mkOption { |         package = mkOption { | ||||||
|           type = pluginsType; |           type = pluginType; | ||||||
|         }; |         }; | ||||||
|         dependencies = mkOption { |         dependencies = mkOption { | ||||||
|           type = listOf str; |           type = listOf str; | ||||||
|  |  | ||||||
|  | @ -302,7 +302,7 @@ in { | ||||||
|       result; |       result; | ||||||
|   in { |   in { | ||||||
|     vim = { |     vim = { | ||||||
|       startPlugins = concatMap (x: x.package) (attrValues cfg.extraPlugins); |       startPlugins = map (x: x.package) (attrValues cfg.extraPlugins); | ||||||
|       configRC = { |       configRC = { | ||||||
|         globalsScript = nvim.dag.entryAnywhere (concatStringsSep "\n" globalsScript); |         globalsScript = nvim.dag.entryAnywhere (concatStringsSep "\n" globalsScript); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
				Ching Pei Yang