Skip to content

Commit 59677e3

Browse files
committed
save changes
1 parent 6b9b123 commit 59677e3

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

lua/aceforeverd/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()]], {})
5151
end
5252

5353
return M

lua/aceforeverd/plugins/util.lua

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function GetRepo(repo)
66
end
77

88
function 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, {})
2237
end
2338

2439
return {

0 commit comments

Comments
 (0)