Skip to content

Commit

Permalink
fix: update hover highlight on FocusGained
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Dec 9, 2023
1 parent 50319e2 commit b6a2f58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/dropbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ local function setup(opts)
end,
desc = 'Remove hover highlight on focus lost.',
})
vim.api.nvim_create_autocmd('FocusGained', {
group = groupid,
callback = function()
utils.bar.update_hover_hl(vim.fn.getmousepos())
end,
desc = 'Remove hover highlight on focus lost.',
})
end
vim.g.loaded_dropbar = true
end
Expand Down

0 comments on commit b6a2f58

Please sign in to comment.