From 93b2f4af626bfe6907f94bc465528601e538d1a5 Mon Sep 17 00:00:00 2001 From: shadmansaleh Date: Wed, 3 Aug 2022 15:36:17 +0000 Subject: [PATCH] chore: autogen (vimdocs+formating) --- doc/lualine.txt | 5 ++--- lua/lualine.lua | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) 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 = {