File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,9 @@ require('lualine').setup {
145
145
always_show_tabline = true ,
146
146
globalstatus = false ,
147
147
refresh = {
148
- statusline = 100 ,
149
- tabline = 100 ,
150
- winbar = 100 ,
148
+ statusline = 1000 ,
149
+ tabline = 1000 ,
150
+ winbar = 1000 ,
151
151
refresh_time = 16 , -- ~60fps
152
152
events = {
153
153
' WinEnter' ,
Original file line number Diff line number Diff line change @@ -61,6 +61,16 @@ local config = {
61
61
extensions = {},
62
62
}
63
63
64
+ --- Ensure sure user config doesn't disable lualine refresh completely
65
+ --- @param options table
66
+ --- @return table
67
+ local function fix_refresh_timer (options )
68
+ if options .refresh .refresh_time <= 0 then
69
+ options .refresh .refresh_time = 16
70
+ end
71
+ return options
72
+ end
73
+
64
74
--- change separator format 'x' to {left='x', right='x'}
65
75
--- @param separators string | table
66
76
--- @return table
@@ -131,6 +141,7 @@ local function apply_configuration(config_table)
131
141
if config_table .extensions then
132
142
config .extensions = utils .deepcopy (config_table .extensions )
133
143
end
144
+ config .options = fix_refresh_timer (config .options )
134
145
config .options .section_separators = fix_separators (config .options .section_separators )
135
146
config .options .component_separators = fix_separators (config .options .component_separators )
136
147
config .options .disabled_filetypes = fix_disabled_filetypes (config .options .disabled_filetypes )
You can’t perform that action at this time.
0 commit comments