mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-25 18:28:50 +02:00
fix(util): fixed lsp willRenameFiles support check
This commit is contained in:
parent
25f3587f3f
commit
21ee35f710
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ end
|
||||||
function M.on_rename(from, to)
|
function M.on_rename(from, to)
|
||||||
local clients = vim.lsp.get_active_clients()
|
local clients = vim.lsp.get_active_clients()
|
||||||
for _, client in ipairs(clients) do
|
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", {
|
local resp = client.request_sync("workspace/willRenameFiles", {
|
||||||
files = {
|
files = {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue