@@ -35,6 +35,7 @@ function utils.get_max_len(contents)
3535 return cells [# cells ]
3636end
3737
38+ -- draw the graphics into the screen center
3839function utils .center_align (tbl )
3940 vim .validate (' tbl' , tbl , ' table' )
4041 local function fill_sizes (lines )
@@ -95,6 +96,7 @@ function utils.disable_move_key(bufnr)
9596 end , keys )
9697end
9798
99+ -- return the most recently files list
98100function utils .get_mru_list ()
99101 local mru = {}
100102 for _ , file in pairs (vim .v .oldfiles or {}) do
107109
108110function utils .get_package_manager_stats ()
109111 local package_manager_stats = { name = ' ' , count = 0 , loaded = 0 , time = 0 }
112+ --- @diagnostic disable-next-line : undefined-global
110113 if packer_plugins then
111114 package_manager_stats .name = ' packer'
115+ --- @diagnostic disable-next-line : undefined-global
112116 package_manager_stats .count = # vim .tbl_keys (packer_plugins )
113117 end
114118 local status , lazy = pcall (require , ' lazy' )
@@ -122,6 +126,7 @@ function utils.get_package_manager_stats()
122126 return package_manager_stats
123127end
124128
129+ --- generate an empty table by length
125130function utils .generate_empty_table (length )
126131 local empty_tbl = {}
127132 if length == 0 then
@@ -181,7 +186,7 @@ function utils.add_update_footer_command(bufnr, footer)
181186 vim .bo [bufnr ].modifiable = false
182187 vim .bo [bufnr ].modified = false
183188
184- last_footer_size = # args .fargs
189+ last_footer_size = # args .fargs -- For future calculation of size
185190 end , { nargs = ' *' })
186191end
187192
0 commit comments