diff --git a/doc/lualine.txt b/doc/lualine.txt index 39dc213..ec038ee 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -919,9 +919,8 @@ So you can simply do < -to refresh. Also don’t call refresh inside components. As components are -evaluated during refresh, calling refresh while refreshing can have undesirable -effects. +Avoid calling lualine.refresh inside components. Since components are evaluated +during refresh, calling refresh while refreshing can have undesirable effects. DISABLING LUALINE ~ diff --git a/lua/lualine.lua b/lua/lualine.lua index a1fe53c..1d9f49c 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -17,7 +17,7 @@ local timers = { stl_timer = vim.loop.new_timer(), tal_timer = vim.loop.new_timer(), wb_timer = vim.loop.new_timer(), - halt_stl_refresh = false, -- mutex ? + halt_stl_refresh = false, -- mutex ? halt_tal_refresh = false, halt_wb_refresh = false, } @@ -321,7 +321,7 @@ local function refresh(opts) opts = vim.tbl_extend('keep', opts, { scope = 'tabpage', place = { 'statusline', 'winbar', 'tabline' }, - trigger = 'unknown' + trigger = 'unknown', }) -- updating statusline in autocommands context seems to trigger 100 different bugs @@ -564,7 +564,7 @@ local function hide(opts) opts = {} end opts = vim.tbl_extend('keep', opts, { - place = {'statusline', 'tabline', 'winbar'}, + place = { 'statusline', 'tabline', 'winbar' }, unhide = false, }) local hide_fn = {