mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	feat: add utility function for binding expressions
This commit is contained in:
		
					parent
					
						
							
								54aad74d8d
							
						
					
				
			
			
				commit
				
					
						ac5c540b2d
					
				
			
		
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -16,6 +16,16 @@ in | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  |     mkExprBinding = key: action: desc: | ||||||
|  |       self.mkIf (key != null) { | ||||||
|  |         "${key}" = { | ||||||
|  |           inherit action desc; | ||||||
|  |           lua = true; | ||||||
|  |           silent = true; | ||||||
|  |           expr = true; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|  | 
 | ||||||
|     mkBinding = key: action: desc: |     mkBinding = key: action: desc: | ||||||
|       self.mkIf (key != null) { |       self.mkIf (key != null) { | ||||||
|         "${key}" = { |         "${key}" = { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 n3oney
				n3oney