-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6099855
commit 967844c
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
' | ||
local plugins = {} | ||
local installed_plugins = require("lazy").plugins() | ||
for _, plugin in ipairs(installed_plugins) do | ||
local handle = plugin[1] | ||
local name = plugin.name or handle | ||
local url = plugin.url | ||
|
||
if url and url:find("https://github.com") then | ||
local name_parts = vim.split(handle, "/") | ||
if #name_parts == 2 then | ||
local author = name_parts[1] | ||
|
||
table.insert(plugins, { | ||
name = name, | ||
handle = handle, | ||
url = url, | ||
author = author, | ||
}) | ||
end | ||
end | ||
end | ||
print(vim.json.encode(plugins)) | ||
' | ||
| do { | ||
^nvim -u ~/.config/nvim/init.lua -l /dev/stdin | ||
} | ||
| complete | ||
| get stderr | ||
| from json | ||
| where author != local |