diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-10 22:17:51 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-16 09:34:31 +0200 |
| commit | 8cf2dc7f9ad31c7467d28f90aec920018e240b7f (patch) | |
| tree | 3cfa3df9bc6aef2006b2bd6ec0fed530ffece02c /lua/nvim-treesitter/refactor/highlight_definitions.lua | |
| parent | a4e2692c7b9fb562eca39ce0bb10ec2544bc7ccb (diff) | |
Refactor locals.lua:
- shared query group stuff -> query.lua
- local-specific stuff from ts_utils -> locals.lua
Diffstat (limited to 'lua/nvim-treesitter/refactor/highlight_definitions.lua')
| -rw-r--r-- | lua/nvim-treesitter/refactor/highlight_definitions.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/refactor/highlight_definitions.lua b/lua/nvim-treesitter/refactor/highlight_definitions.lua index d1eb4712..71081442 100644 --- a/lua/nvim-treesitter/refactor/highlight_definitions.lua +++ b/lua/nvim-treesitter/refactor/highlight_definitions.lua @@ -20,8 +20,8 @@ function M.highlight_usages(bufnr) return end - local def_node, scope = ts_utils.find_definition(node_at_point, bufnr) - local usages = ts_utils.find_usages(node_at_point, scope) + local def_node, scope = locals.find_definition(node_at_point, bufnr) + local usages = locals.find_usages(node_at_point, scope) for _, usage_node in ipairs(usages) do if usage_node ~= node_at_point then |
