fix install.lua

This commit is contained in:
Andrea Blankenstijn 2022-07-02 18:12:08 +02:00
parent 6bd120a03a
commit aaf1c84fc0
1 changed files with 2 additions and 2 deletions

View File

@ -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