File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function M.setup()
4747 -- <space>xxx -> view-only operators
4848 -- <leader>xxx -> possibly write operators
4949
50- vim .api .nvim_create_user_command (' GetOldPlugins ' , [[ lua require('aceforeverd.plugins.util').GetOldPlugins()]] , {})
50+ vim .api .nvim_create_user_command (' PackCheckHealth ' , [[ lua require('aceforeverd.plugins.util').GetOldPlugins()]] , {})
5151end
5252
5353return M
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ function GetRepo(repo)
66end
77
88function GetOldPlugins ()
9+ -- minpac plugins
910 local plugins = vim .fn [' minpac#getpluglist' ]()
1011 local out = {}
1112 for _ , value in pairs (plugins ) do
@@ -14,11 +15,25 @@ function GetOldPlugins()
1415 local stats = GetRepo (repo )
1516
1617 if stats ~= nil and stats .archived == true then
17- table.insert (out , {value , ' archived' })
18+ table.insert (out , repo )
19+ else
20+ vim .notify (' ok: ' .. repo , vim .log .levels .INFO , {})
1821 end
1922 end
2023
21- vim .api .nvim_notify (vim .inspect (out ), vim .log .levels .INFO , {})
24+ -- lazy plugins
25+ local lua_plugins = require (' aceforeverd.plugins' ).plugin_list
26+ for _ , value in pairs (lua_plugins ) do
27+ local stats = GetRepo (value [0 ])
28+
29+ if stats ~= nil and stats .archived == true then
30+ table.insert (out , value [0 ])
31+ else
32+ vim .notify (' ok: ' .. value [0 ], vim .log .levels .INFO , {})
33+ end
34+ end
35+
36+ vim .notify (' archived: ' .. vim .inspect (out ), vim .log .levels .INFO , {})
2237end
2338
2439return {
You can’t perform that action at this time.
0 commit comments