Skip to content

Commit

Permalink
feat: return line and column number for each symbol in get_location API
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Aug 22, 2022
1 parent f40bb38 commit d5b405e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/aerial/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ M.get_location = function(exact)
kind = item.kind,
icon = config.get_icon(0, item.kind),
name = item.name,
lnum = item.selection_range and item.selection_range.lnum or item.lnum,
col = item.selection_range and item.selection_range.col or item.col,
})
item = item.parent
end
Expand Down

0 comments on commit d5b405e

Please sign in to comment.