From 99df0d8f66ac499e949109883792ddb22ddba025 Mon Sep 17 00:00:00 2001 From: Debashis Biswas <37234687+debashisbiswas@users.noreply.github.com> Date: Mon, 19 Dec 2022 15:57:28 -0700 Subject: Fix error on Windows when space in install path (#64) --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 52a0b98..961eb78 100644 --- a/init.lua +++ b/init.lua @@ -3,7 +3,7 @@ local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nv local is_bootstrap = false if vim.fn.empty(vim.fn.glob(install_path)) > 0 then is_bootstrap = true - vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path) + vim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) vim.cmd [[packadd packer.nvim]] end -- cgit v1.2.3-70-g09d2