hrsh7th / cmp-nvim-lsp-signature-help

cmp-nvim-lsp-signature-help
638 stars 26 forks source link

Fix: Usage of deprecated vim.lsp.buf_get_clients #47

Closed listout closed 6 months ago

listout commented 6 months ago

We should be using vim.lsp.get_clients() instead.

4-0-9 commented 6 months ago

Shouldn't we do something like

local get_clients = vim.lsp.get_clients or vim.lsp.buf_get_clients
for _, client in pairs(get_clients()) do
-- [...]

for compatibility?

listout commented 6 months ago

@4-0-9 good catch, fixing


Edit: Thanks!

hrsh7th commented 6 months ago

thank you