Skip to content

Commit

Permalink
feat(preview): window var to know a window is a preview win
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent 5b5446d commit dcecbb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/trouble/view/preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function M.preview_win(buf, view)
Util.noautocmd(function()
view.preview_win:set_buf(buf)
view.preview_win:set_options("win")
vim.w[view.preview_win.win].trouble_preview = true
end)

return {
Expand Down

0 comments on commit dcecbb9

Please sign in to comment.