mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(version): allow version=false to override default version
This commit is contained in:
parent
7b9fa284f8
commit
f36c7cb0dc
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ function M.get_target(plugin)
|
|||
commit = M.ref(plugin.dir, "tags/" .. plugin.tag),
|
||||
}
|
||||
end
|
||||
local version = plugin.version or Config.options.defaults.version
|
||||
local version = plugin.version == nil and Config.options.defaults.version or plugin.version
|
||||
if version then
|
||||
local last = Semver.last(M.get_versions(plugin.dir, version))
|
||||
if last then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue