Closed danielpost closed 4 months ago
hi, you are right, for a quickfix, do this
vim.lsp.util.apply_text_edits({ { range = range, newText = newText } }, vim.api.nvim_get_current_buf(), "utf-16")
I am getting the same problem on Windows 11 fyi. And I can confirm the fix provided by @siblanco works so thank you both!
I am getting the same problem on Windows 11 fyi. And I can confirm the fix provided by @siblanco works so thank you both!
hello, where add this, I add it to lazy config:
config = function()
vim.lsp.util.apply_text_edits({ { range = range, newText = newText } }, vim.api.nvim_get_current_buf(), "utf-16")
end
where can I take the params range and newText
After updating Neovim, I'm getting the following error when trying to autocomplete:
It is almost definitely related to this change: https://github.com/neovim/neovim/pull/27614, and I think the fix would be to pass the current buffer here, but I don't know enough about Lua to be 100% sure.