feat(refactor.navigation): add navigation.goto_{next,previous}_usage

This commit is contained in:
Stephan Seitz 2020-08-22 20:46:40 +02:00 committed by Thomas Vigouroux
parent ffe7d96dfd
commit 5948aba886
7 changed files with 72 additions and 20 deletions

View file

@ -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