Skip to content

Commit

Permalink
fix: remove hover highlight on FocusLost (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Dec 8, 2023
1 parent fd8dc75 commit 50319e2
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 @@ -136,6 +136,13 @@ local function setup(opts)
utils.bar.update_hover_hl(vim.fn.getmousepos())
end
end)
vim.api.nvim_create_autocmd('FocusLost', {
group = groupid,
callback = function()
utils.bar.update_hover_hl({})
end,
desc = 'Remove hover highlight on focus lost.',
})
end
vim.g.loaded_dropbar = true
end
Expand Down

0 comments on commit 50319e2

Please sign in to comment.