mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
fix(smart_rename): fix usages call
This commit is contained in:
parent
f3a515b350
commit
53fda90be0
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ function M.smart_rename(bufnr)
|
|||
if not new_name or #new_name < 1 then return end
|
||||
|
||||
local definition, scope = locals.find_definition(node_at_point, bufnr)
|
||||
local nodes_to_rename = locals.find_usages(node_at_point, scope)
|
||||
local nodes_to_rename = locals.find_usages(definition, scope, bufnr)
|
||||
|
||||
if not vim.tbl_contains(nodes_to_rename, node_at_point) then
|
||||
table.insert(nodes_to_rename, node_at_point)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue