mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
refactor: Plugin.uri
=> Plugin.url
This commit is contained in:
parent
43b303bd8f
commit
4cfe0b5315
8 changed files with 27 additions and 27 deletions
|
@ -130,7 +130,7 @@ function M.show(mode)
|
|||
local function open(path)
|
||||
local plugin = get_plugin()
|
||||
if plugin then
|
||||
local url = plugin.uri:gsub("%.git$", "")
|
||||
local url = plugin.url:gsub("%.git$", "")
|
||||
if Util.file_exists(url) then
|
||||
url = "https://github.com/" .. plugin[1]
|
||||
end
|
||||
|
|
|
@ -363,7 +363,7 @@ end
|
|||
function M:details(plugin)
|
||||
---@type string[][]
|
||||
local props = {}
|
||||
table.insert(props, { "uri", (plugin.uri:gsub("%.git$", "")), "@text.reference" })
|
||||
table.insert(props, { "url", (plugin.url:gsub("%.git$", "")), "@text.reference" })
|
||||
local git = Git.info(plugin.dir, true)
|
||||
if git then
|
||||
git.branch = git.branch or Git.get_branch(plugin)
|
||||
|
|
|
@ -70,7 +70,7 @@ return {
|
|||
},
|
||||
{
|
||||
filter = function(plugin)
|
||||
return plugin._.installed and not plugin.uri
|
||||
return plugin._.installed and not plugin.url
|
||||
end,
|
||||
title = "Clean",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue