File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ M.defaults = {
7
7
plugins = " config.plugins" ,
8
8
defaults = {
9
9
opt = false , -- should plugins default to "opt" or "start"
10
+ version = nil ,
10
11
-- version = "*", -- enable this to try installing the latest stable versions of plugins
11
12
},
12
13
dev = {
Original file line number Diff line number Diff line change 1
1
local Util = require (" lazy.util" )
2
2
local Semver = require (" lazy.manage.semver" )
3
+ local Config = require (" lazy.core.config" )
3
4
4
5
local M = {}
5
6
@@ -89,8 +90,9 @@ function M.get_target(plugin)
89
90
commit = M .ref (plugin .dir , " tags/" .. plugin .tag ),
90
91
}
91
92
end
92
- if plugin .version then
93
- local last = Semver .last (M .get_versions (plugin .dir , plugin .version ))
93
+ local version = plugin .version or Config .options .defaults .version
94
+ if version then
95
+ local last = Semver .last (M .get_versions (plugin .dir , version ))
94
96
if last then
95
97
return {
96
98
branch = branch and branch .branch ,
You can’t perform that action at this time.
0 commit comments