hrsh7th / cmp-nvim-lsp-signature-help

cmp-nvim-lsp-signature-help
584 stars 24 forks source link

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

Closed listout closed 2 months ago

listout commented 2 months ago

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

4-0-9 commented 2 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 2 months ago

@4-0-9 good catch, fixing


Edit: Thanks!

hrsh7th commented 2 months ago

thank you