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

@@ -140,7 +140,7 @@ function M.show_status(ctx)
if p.get_status then
table.insert(lines, 'Provider info:')
table.insert(lines, '')
for _, line in ipairs(p.get_status()) do
for _, line in ipairs(p.get_status(ctx.provider_info)) do
table.insert(lines, indent .. line)
end
end