Skip to content

Commit

Permalink
feat(window): expose some window vars for integration with other plug…
Browse files Browse the repository at this point in the history
…ins (edgy.nvim)
  • Loading branch information
folke committed May 30, 2024
1 parent c7e5398 commit aae1da8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/trouble/view/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ function M:mount()
---@diagnostic disable-next-line: param-type-mismatch
self:mount_float(self.opts)
end
vim.w[self.win].trouble = true
vim.w[self.win].trouble = {
type = self.opts.type,
relative = self.opts.relative,
position = self.opts.position,
}

self:set_options("win")

self:on({ "BufWinLeave" }, vim.schedule_wrap(self.check_alien))
Expand Down

0 comments on commit aae1da8

Please sign in to comment.