mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
fix(plugin): pass plugin as arg to config/init/build
This commit is contained in:
parent
de383740a2
commit
b6ebed5888
2 changed files with 7 additions and 3 deletions
|
@ -20,7 +20,7 @@ M.build = {
|
|||
local cmd = vim.api.nvim_parse_cmd(build:sub(2), {})
|
||||
self.output = vim.api.nvim_cmd(cmd, { output = true })
|
||||
elseif type(build) == "function" then
|
||||
build()
|
||||
build(self.plugin)
|
||||
else
|
||||
local shell = vim.env.SHELL or vim.o.shell
|
||||
local shell_args = shell:find("cmd.exe", 1, true) and "/c" or "-c"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue