Skip to content

Commit

Permalink
fix(telescope): close telescope after sending results to trouble
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent aae1da8 commit 2753932
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/trouble/sources/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function M.open(prompt_bufnr)
Item.add_text(M.items, { mode = "after" })

vim.schedule(function()
require("telescope.actions").close(prompt_bufnr)
require("trouble").open("telescope")
end)
end
Expand Down

0 comments on commit 2753932

Please sign in to comment.