mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	fix(lsp): use bufnr when getting clients in symbols_to_items (#33760)
				
					
				
			(cherry picked from commit 34c769dd89)
			
			
This commit is contained in:
		
				
					committed by
					
						
						github-actions[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							6563c6bde7
						
					
				
				
					commit
					901eeeb2e6
				
			@@ -1793,7 +1793,7 @@ function M.symbols_to_items(symbols, bufnr, position_encoding)
 | 
			
		||||
      'symbols_to_items must be called with valid position encoding',
 | 
			
		||||
      vim.log.levels.WARN
 | 
			
		||||
    )
 | 
			
		||||
    position_encoding = vim.lsp.get_clients({ bufnr = 0 })[1].offset_encoding
 | 
			
		||||
    position_encoding = vim.lsp.get_clients({ bufnr = bufnr })[1].offset_encoding
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  local items = {} --- @type vim.quickfix.entry[]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user