Skip to content

Commit a0849ad

Browse files
committed
fix(lsp.renamer): add args for the lsp.util..() #456
1 parent eb8d3e8 commit a0849ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvchad/lsp/renamer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ return function()
2424
api.nvim_buf_delete(buf, { force = true })
2525

2626
if #newName > 0 and newName ~= var then
27-
local params = vim.lsp.util.make_position_params()
27+
local params = vim.lsp.util.make_position_params(0, "utf-8")
2828
params.newName = newName
2929
vim.lsp.buf_request(0, "textDocument/rename", params)
3030
end

0 commit comments

Comments
 (0)