Closed ShiChenCong closed 8 months ago
local ref = require('illuminate.reference')
local util = require('illuminate.util')
local cursor_pos = util.get_cursor_pos(winid)
local i = ref.bisect_left(ref.buf_get_references(bufnr), cursor_pos)
print(string.format("[%d/%d]", i, #ref.buf_get_references(bufnr)))
Like this: [4/5]