Skip to content

Commit

Permalink
fix: restore eventignore from "all" to "" after showing hydra window
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejboczar committed Nov 28, 2023
1 parent 3ced42c commit 9698ddc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/hydra/hint/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@ function HintAutoWindow:show()
end
if not self.win_config then self:_make_win_config() end

local eventignore = vim.o.eventignore
vim.o.eventignore = 'all' -- turn off autocommands

local winid = api.nvim_open_win(self.buffer.id, false, self.win_config)

---@type hydra.api.Window
local win = Window(winid)
self.win = win

win.wo.winhighlight = 'NormalFloat:HydraHint,FloatBorder:HydraBorder'
win.wo.conceallevel = 3
win.wo.foldenable = false
win.wo.wrap = false

vim.o.eventignore = nil -- turn on autocommands
win.wo[win.id].winhighlight = 'NormalFloat:HydraHint,FloatBorder:HydraBorder'
win.wo[win.id].conceallevel = 3
win.wo[win.id].foldenable = false
win.wo[win.id].wrap = false
vim.o.eventignore = eventignore -- turn on autocommands

autocmd('TabEnter', { group = augroup, callback = function()
if self.win:is_valid() then
Expand Down

0 comments on commit 9698ddc

Please sign in to comment.