mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	docs: fix docs for hilbish.complete
This commit is contained in:
		
							parent
							
								
									0ed365170c
								
							
						
					
					
						commit
						76c94bfcce
					
				
							
								
								
									
										6
									
								
								api.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								api.go
									
									
									
									
									
								
							@ -400,8 +400,10 @@ func hlinterval(L *lua.LState) int {
 | 
				
			|||||||
// Registers a completion handler for `scope`.
 | 
					// Registers a completion handler for `scope`.
 | 
				
			||||||
// A `scope` is currently only expected to be `command.<cmd>`,
 | 
					// A `scope` is currently only expected to be `command.<cmd>`,
 | 
				
			||||||
// replacing <cmd> with the name of the command (for example `command.git`).
 | 
					// replacing <cmd> with the name of the command (for example `command.git`).
 | 
				
			||||||
// `cb` must be a function that returns a table of the entries to complete.
 | 
					// `cb` must be a function that returns a table of "completion groups."
 | 
				
			||||||
// Nested tables will be used as sub-completions.
 | 
					// A completion group is a table with the keys `items` and `type`.
 | 
				
			||||||
 | 
					// `items` being a table of items and `type` being the display type of
 | 
				
			||||||
 | 
					// `grid` (the normal file completion display) or `list` (with a description)
 | 
				
			||||||
// --- @param scope string
 | 
					// --- @param scope string
 | 
				
			||||||
// --- @param cb function
 | 
					// --- @param cb function
 | 
				
			||||||
func hlcomplete(L *lua.LState) int {
 | 
					func hlcomplete(L *lua.LState) int {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user