fix install.lua
This commit is contained in:
parent
6bd120a03a
commit
aaf1c84fc0
|
@ -4,7 +4,7 @@
|
|||
---@param git string?
|
||||
local function clone(branch, git)
|
||||
git = git or "git"
|
||||
if vim.fn.executable(git) then
|
||||
if not vim.fn.executable(git) then
|
||||
return false, "missing git!"
|
||||
end
|
||||
local path = vim.fn.stdpath("data") .. "/site/pack/hsv2/opt/hsv2.nvim"
|
||||
|
@ -34,7 +34,7 @@ function HSV2_INSTALL(branch, git)
|
|||
local status, output = clone(branch, git)
|
||||
if not status then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone repository", "Error" },
|
||||
{ "Failed to clone repository\n", "Error" },
|
||||
{ output, "Error" },
|
||||
}, true, {})
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue