diff options
author | Debashis Biswas <37234687+debashisbiswas@users.noreply.github.com> | 2022-12-19 15:57:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 17:57:28 -0500 |
commit | 99df0d8f66ac499e949109883792ddb22ddba025 (patch) | |
tree | e46ffa26d383e88d0970e1c1c0b2497ea6d39df8 | |
parent | f218bcd6fe9c1e4aeb209dd4035a4d9341aac161 (diff) |
Fix error on Windows when space in install path (#64)
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |