chore: stylua

This commit is contained in:
Simrat Grewal
2022-08-10 15:29:39 -07:00
parent d1065bc492
commit ed6c058eee
16 changed files with 231 additions and 81 deletions

View File

@@ -27,12 +27,17 @@ function M.rename()
params.newName = new_name
buf_request(params.bufnr, 'textDocument/rename', params, function(_, result, ctx)
if result ~= nil then
local client = vim.lsp.get_client_by_id(ctx.client_id)
vim.lsp.util.apply_workspace_edit(result, client.offset_encoding)
buf_request(
params.bufnr,
'textDocument/rename',
params,
function(_, result, ctx)
if result ~= nil then
local client = vim.lsp.get_client_by_id(ctx.client_id)
vim.lsp.util.apply_workspace_edit(result, client.offset_encoding)
end
end
end)
)
end
return M