Fix error on Windows when space in install path

This commit is contained in:
Debashis Biswas 2022-12-19 00:12:12 -07:00
parent c73aefcb21
commit 1ca09d3955
1 changed files with 1 additions and 1 deletions

View File

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