b0o / incline.nvim

🎈 Floating statuslines for Neovim, winbar alternative
MIT License
759 stars 14 forks source link

Refresh on FocusLost & FocusGained #42

Closed brycekellogg closed 1 year ago

brycekellogg commented 1 year ago

It looks like incline.nvim doesn't refresh on the FocusLost or FocusGained events. I was able to work around this with the following configuration:

vim.api.nvim_create_autocmd({'FocusLost', 'FocusGained'}, {
     callback = function()
         require('incline').enable()
     end,
})

but it might make sense to add those two events as default refresh events.