fixed deprecated call

This commit is contained in:
2025-03-29 05:25:06 +01:00
parent ab10fef255
commit ac72c23c2e

View File

@@ -40,7 +40,7 @@ local function debounce(func, delay)
end end
M.supports_method = function(method) M.supports_method = function(method)
local clients = vim.lsp.buf_get_clients() local clients = vim.lsp.get_clients()
for _, client in pairs(clients) do for _, client in pairs(clients) do
if client.server_capabilities[method] then if client.server_capabilities[method] then
return true return true