mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	fix(lsp): use correct deprecation function (#34518)
(cherry picked from commit 00ad477419)
			
			
This commit is contained in:
		
				
					committed by
					
						
						github-actions[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							ff8acfffd2
						
					
				
				
					commit
					ea8db9003b
				
			@@ -440,7 +440,7 @@ end
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
---@see vim.lsp.protocol.CompletionTriggerKind
 | 
					---@see vim.lsp.protocol.CompletionTriggerKind
 | 
				
			||||||
function M.completion(context)
 | 
					function M.completion(context)
 | 
				
			||||||
  vim.depends('vim.lsp.buf.completion', 'vim.lsp.completion.trigger', '0.12')
 | 
					  vim.deprecate('vim.lsp.buf.completion', 'vim.lsp.completion.trigger', '0.12')
 | 
				
			||||||
  return lsp.buf_request(
 | 
					  return lsp.buf_request(
 | 
				
			||||||
    0,
 | 
					    0,
 | 
				
			||||||
    ms.textDocument_completion,
 | 
					    ms.textDocument_completion,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user