Skip to content

Commit f43ea3c

Browse files
restrayTimothée Belhomme
authored andcommitted
Fix error on Windows when space in install path (nvim-lua#64)
1 parent 7b865e1 commit f43ea3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nv
33
local is_bootstrap = false
44
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
55
is_bootstrap = true
6-
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
6+
vim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
77
vim.cmd [[packadd packer.nvim]]
88
end
99

0 commit comments

Comments
 (0)