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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user