We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
:
1 parent c92c6b5 commit 5bdb12aCopy full SHA for 5bdb12a
lua/lazy/manage/task/plugin.lua
@@ -19,6 +19,9 @@ local B = {}
19
---@param task LazyTask
20
---@param build string
21
function B.cmd(task, build)
22
+ if task.plugin.build ~= "rockspec" then
23
+ Loader.load(task.plugin, { task = "build" })
24
+ end
25
local cmd = vim.api.nvim_parse_cmd(build:sub(2), {}) --[[@as vim.api.keyset.cmd]]
26
task:log(vim.api.nvim_cmd(cmd, { output = true }))
27
end
@@ -48,10 +51,6 @@ M.build = {
48
51
run = function(self)
49
52
vim.cmd([[silent! runtime plugin/rplugin.vim]])
50
53
- if self.plugin.build ~= "rockspec" then
- Loader.load(self.plugin, { task = "build" })
- end
54
-
55
local builders = self.plugin.build
56
57
-- Skip if `build` is set to `false`
0 commit comments