File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ function view:preview_events()
6969 return k ~= self .main_winid and k ~= self .preview_winid
7070 end , wins )[1 ]
7171 if type (winconfig .col ) == ' table' and type (winconfig .col [false ]) == ' number' then
72- winconfig .col [false ] = winconfig .col [false ] + api .nvim_win_get_width (new_win )
72+ winconfig .col [false ] = winconfig .col [false ] + api .nvim_win_get_width (new_win )
7373 end
7474 api .nvim_win_set_config (self .preview_winid , winconfig )
7575 self .win_width = cur_width
Original file line number Diff line number Diff line change @@ -140,6 +140,20 @@ function utils.get_package_manager_stats()
140140 package_manager_stats .time = vim .g .strive_startup_time
141141 package_manager_stats .count = vim .g .strive_count
142142 end
143+ if package_manager_stats .name == ' ' and vim .pack and type (vim .pack .get ) == ' function' then
144+ local ok , plugins = pcall (vim .pack .get , nil , { info = false })
145+ if ok and type (plugins ) == ' table' and # plugins > 0 then
146+ package_manager_stats .name = ' vim.pack'
147+ package_manager_stats .count = # plugins
148+ local loaded = 0
149+ for _ , plugin in ipairs (plugins ) do
150+ if plugin .active then
151+ loaded = loaded + 1
152+ end
153+ end
154+ package_manager_stats .loaded = loaded
155+ end
156+ end
143157 return package_manager_stats
144158end
145159
You can’t perform that action at this time.
0 commit comments