fix(util): fixed lsp willRenameFiles support check

This commit is contained in:
Folke Lemaitre
2023-10-08 10:44:17 +02:00
parent 25f3587f3f
commit 21ee35f710

View File

@ -304,7 +304,7 @@ end
function M.on_rename(from, to)
local clients = vim.lsp.get_active_clients()
for _, client in ipairs(clients) do
if client:supports_method("workspace/willRenameFiles") then
if client.supports_method("workspace/willRenameFiles") then
local resp = client.request_sync("workspace/willRenameFiles", {
files = {
{