mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	refactor: replace deprecated lua functions with their new versions (#16609)
Calling vim.lsp.buf.definition() sometimes gives a deprecation warning. This will likely solve that. Co-authored-by: Christian Clason <christian.clason@uni-due.de>
This commit is contained in:
		![41898282+github-actions[bot]@users.noreply.github.com](/assets/img/avatar_default.png) github-actions[bot]
					github-actions[bot]
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							08ddfa9851
						
					
				
				
					commit
					2cd272decb
				
			| @@ -285,7 +285,7 @@ local function location_handler(_, result, ctx, _) | ||||
|     util.jump_to_location(result[1]) | ||||
|  | ||||
|     if #result > 1 then | ||||
|       util.set_qflist(util.locations_to_items(result)) | ||||
|       vim.fn.setqflist({}, ' ', {title = 'LSP locations', items = util.locations_to_items(result)}) | ||||
|       api.nvim_command("copen") | ||||
|     end | ||||
|   else | ||||
| @@ -379,7 +379,7 @@ local make_call_hierarchy_handler = function(direction) | ||||
|         }) | ||||
|       end | ||||
|     end | ||||
|     util.set_qflist(items) | ||||
|     vim.fn.setqflist({}, ' ', {title = 'LSP call hierarchy', items = items}) | ||||
|     api.nvim_command("copen") | ||||
|   end | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user