mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	plugins/visuals(indent-blankline): move to setupOpts (#329)
* plugins/visuals(indent-blankline): move to setupOpts * configuration: match indentblankline part with changes
This commit is contained in:
		
					parent
					
						
							
								901363d1ac
							
						
					
				
			
			
				commit
				
					
						32d231395f
					
				
			
		
					 6 changed files with 188 additions and 103 deletions
				
			
		|  | @ -1,8 +1,8 @@ | |||
| {lib}: let | ||||
|   inherit (lib) isStringLike showOption showFiles getFiles mergeOneOption mergeEqualOption; | ||||
|   inherit (lib) isStringLike showOption showFiles getFiles mergeOneOption mergeEqualOption mkOptionType; | ||||
|   inherit (lib.types) anything attrsOf; | ||||
|   inherit (lib.nvim.types) anythingConcatLists; | ||||
|   inherit (builtins) typeOf isAttrs any head concatLists; | ||||
|   inherit (builtins) typeOf isAttrs any head concatLists stringLength; | ||||
| in { | ||||
|   # HACK: Does this break anything in our case? | ||||
|   # A modified version of the nixpkgs anything type that concatenates lists | ||||
|  | @ -50,4 +50,12 @@ in { | |||
|         # otherwise only allow equal values | ||||
|         (mergeFunctions.${commonType} or mergeEqualOption) loc defs; | ||||
|     }; | ||||
| 
 | ||||
|   char = mkOptionType { | ||||
|     name = "char"; | ||||
|     description = "character"; | ||||
|     descriptionClass = "noun"; | ||||
|     check = value: stringLength value < 2; | ||||
|     merge = mergeEqualOption; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 diniamo
				diniamo