mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
fix: telescope extension uses selection_range (#279)
This commit is contained in:
parent
bd31dd0ebe
commit
bb2cc2fbf0
1 changed files with 4 additions and 2 deletions
|
@ -87,13 +87,15 @@ local function aerial_picker(opts)
|
|||
end
|
||||
end
|
||||
end
|
||||
local lnum = item.selection_range and item.selection_range.lnum or item.lnum
|
||||
local col = item.selection_range and item.selection_range.col or item.col
|
||||
return {
|
||||
value = item,
|
||||
display = make_display,
|
||||
name = name,
|
||||
ordinal = name .. " " .. string.lower(item.kind),
|
||||
lnum = item.lnum,
|
||||
col = item.col + 1,
|
||||
lnum = lnum,
|
||||
col = col + 1,
|
||||
filename = filename,
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue