Skip to content

Commit

Permalink
Feat: expose items (#41)
Browse files Browse the repository at this point in the history
...via require'trouble'.get_items().
  • Loading branch information
runiq committed May 30, 2021
1 parent 7e3d4f9 commit 4f84ca4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/trouble/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,12 @@ function Trouble.action(action)
end
end

function Trouble.get_items()
if view ~= nil then
return view.items
else
return {}
end
end

return Trouble

0 comments on commit 4f84ca4

Please sign in to comment.