From 7dd473df13e0aad5537556c449ca173113fbb0c5 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 24 Apr 2021 15:33:37 +0530 Subject: [PATCH 1/2] fix packer.nvim install link #30 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9233b32..4664614 100644 --- a/README.md +++ b/README.md @@ -134,9 +134,11 @@ nvim-base16 doesnt even take time to load unlike base16-vim which was eating hal - Install packer.nvim -```shell +``` + git clone https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim + ``` - copy lua folder and init.lua into ~/.config/nvim From aafea2b6f4d49c541a33119fc5299adea09fb91e Mon Sep 17 00:00:00 2001 From: mTvare <57838468+mTvare6@users.noreply.github.com> Date: Sat, 24 Apr 2021 18:21:13 +0530 Subject: [PATCH 2/2] use gnu sed in mac --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2249fc9..a0295e1 100755 --- a/install.sh +++ b/install.sh @@ -53,7 +53,12 @@ cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim read -p "which shell do you use?: " shellname echo "$shellname" -sed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings/lua.lua +if [ "$(get_platform)" = "Mac" ]; then + gsed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings/lua.lua +else + sed -i "s/bash/$shellname/g" ~/.config/nvim/lua/mappings/lua.lua +fi + echo "shell changed to $shellname on nvim successfully!" #for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do