fixed autocomplete behavior.
Previously, when you didnt want to do any completion and tried to put a newline directly after, nvim would intrepret the enter as choosing the first completion entry.
This commit is contained in:
		
							parent
							
								
									1c1b136ba6
								
							
						
					
					
						commit
						1256688237
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -22,7 +22,7 @@ cmp.setup {
 | 
			
		|||
		['<C-e>'] = cmp.mapping.close(),
 | 
			
		||||
		['<CR>'] = cmp.mapping.confirm {
 | 
			
		||||
			behavior = cmp.ConfirmBehavior.Insert,
 | 
			
		||||
			select = true,
 | 
			
		||||
			select = false,
 | 
			
		||||
			-- behavior = cmp.ConfirmBehavior.Replace,
 | 
			
		||||
			-- select = false,
 | 
			
		||||
		},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue