Refresh only on events #1467
GordianDziwis
started this conversation in
Configuration
Replies: 1 comment
-
|
In config: refresh = {
statusline = 0,
tabline = 0,
winbar = 0,
refresh_time = 100000,
},And force trigger with au: vim.api.nvim_create_autocmd({
'WinEnter',
'BufEnter',
'BufWritePost',
'SessionLoadPost',
'FileChangedShellPost',
'VimResized',
'Filetype',
'CursorMoved',
'CursorMovedI',
'ModeChanged',
}, {
callback = function()
require('lualine').refresh({ force = true })
end,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the default settings, lualine takes a non-trivial amount of CPU time, because of the refresh loop.
This prevents the CPU of entering idle states, I got some improvement with the following settings:
But if I have no components that need constant polling, how to disable the refresh loop and only refresh on events?
Beta Was this translation helpful? Give feedback.
All reactions