fix(win): don't enter when focusable is false

This commit is contained in:
Folke Lemaitre 2024-12-31 06:03:31 +01:00
parent a1da66e3bf
commit ca233c7448
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -346,6 +346,7 @@ function M:open_win()
local relative = self.opts.relative or "editor"
local position = self.opts.position or "float"
local enter = self.opts.enter == nil or self.opts.enter or false
enter = not self.opts.focusable and enter or false
local opts = self:win_opts()
if position == "float" then
self.win = vim.api.nvim_open_win(self.buf, enter, opts)