mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
feat(refactor.navigation): add navigation.goto_{next,previous}_usage
This commit is contained in:
parent
ffe7d96dfd
commit
5948aba886
7 changed files with 72 additions and 20 deletions
|
|
@ -67,4 +67,12 @@ function M.set_jump()
|
|||
vim.cmd "normal! m'"
|
||||
end
|
||||
|
||||
function M.index_of(tbl, obj)
|
||||
for i, o in ipairs(tbl) do
|
||||
if o == obj then
|
||||
return i
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue