This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function RenameWithQuickfix() | |
local position_params = vim.lsp.util.make_position_params() | |
local new_name = vim.fn.input "New Name > " | |
position_params.newName = new_name | |
vim.lsp.buf_request(0, "textDocument/rename", position_params, function(err, method, result, ...) | |
-- You can uncomment this to see what the result looks like. | |
if false then | |
print(vim.inspect(result)) |