mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
feat(smart_rename): set cursor to start of renamed code after renaming
This commit is contained in:
parent
bc36521967
commit
86a9aa1fbd
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ function M.smart_rename(bufnr)
|
|||
table.insert(edits, text_edit)
|
||||
end
|
||||
vim.lsp.util.apply_text_edits(edits, bufnr)
|
||||
ts_utils.goto_node(node_at_point, false, true)
|
||||
end
|
||||
|
||||
function M.attach(bufnr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue