fix(providers): Ensure working on nvim-0.7

This commit removed the ability to receive symbols from all attached
clients in the current buffer. Everything works as before when only one
client is attached to a buffer.

This also fixes outline LSP finding clients on nvim-0.7
This commit is contained in:
hedy
2023-12-29 19:17:00 +08:00
parent 5669c8aa9e
commit 8b2f412b7b
7 changed files with 91 additions and 48 deletions

View File

@@ -12,13 +12,14 @@ function M.is_buf_markdown(bufnr)
end
--- Merge all client token lists in an LSP response
function M.flatten_response(response)
-- Currentlhy unused because we are only supporting receiving symbols
-- from 1 LSP client.
function M.merge_responses(responses)
local all_results = {}
-- flatten results to one giant table of symbols
for client_id, client_response in pairs(response) do
for client_id, client_response in pairs(responses) do
if config.is_client_blacklisted(client_id) then
print('skipping client ' .. client_id)
goto continue
end