more stuff
This commit is contained in:
parent
9c7c46855c
commit
72d99537bf
9 changed files with 195 additions and 26 deletions
|
|
@ -8,6 +8,8 @@ local function on_list(opts)
|
|||
|
||||
-- get to the closest reference to the cursor (likely the one gr or gd was
|
||||
-- called on)
|
||||
--
|
||||
-- TODO: switch this to use opts.idx?
|
||||
local closest, distance = 1, false
|
||||
for i, item in ipairs(opts.items) do
|
||||
if item.filename and vim.fn.expand("%:p") == item.filename then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue