From 392fac949c41946fe747934d7a1c67742bae4bfc Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 4 Jan 2022 20:51:05 +0100 Subject: [PATCH] Fixes --- .env | 5 +++-- .gitignore | 3 ++- configs/lazygit/state.yml | 6 ------ scripts/tools/neovim/install.sh | 5 +++++ 4 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 configs/lazygit/state.yml diff --git a/.env b/.env index af237eb..dea5a53 100644 --- a/.env +++ b/.env @@ -1,11 +1,12 @@ # CURRENT SELECTED CONFIGURATION +# Coming soon # Available configuration (bash, zsh, fish) -SHELL=zsh +# SHELL=zsh # Available configuration (awesome, i3) WM=awesome # Install neovim with custom configuration WITH_NEOVIM=yes - +WITH_LAZYGIT=yes diff --git a/.gitignore b/.gitignore index 6fa2256..118e22f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -configs/nvim/plugin/packer_compiled.lua \ No newline at end of file +configs/nvim/plugin/packer_compiled.lua +configs/lazygit/state.yml \ No newline at end of file diff --git a/configs/lazygit/state.yml b/configs/lazygit/state.yml deleted file mode 100644 index 57b69c2..0000000 --- a/configs/lazygit/state.yml +++ /dev/null @@ -1,6 +0,0 @@ -lastupdatecheck: 0 -recentrepos: -- /home/florian/Documents/Repos/Perso/linux-conf -startuppopupversion: 5 -customcommandshistory: [] -hidecommandlog: false diff --git a/scripts/tools/neovim/install.sh b/scripts/tools/neovim/install.sh index 61f88aa..e59b282 100755 --- a/scripts/tools/neovim/install.sh +++ b/scripts/tools/neovim/install.sh @@ -8,6 +8,11 @@ if [[ "$WITH_NEOVIM" == 'yes' ]]; then echo '[INFO] Neovim already installed' fi + if [[ "$WITH_LAZYGIT" == 'yes' && ! -d "$HOME/.config/lazygit" ]]; then + ln -s "$CWD/configs/lazygit" "$HOME/.config/lazygit" + echo "[INFO] Neovim config linked with symbolic link : $CWD/configs/lazygit -> $HOME/.config/lazygit" + fi + if [[ ! -d "$HOME/.config/nvim" ]]; then ln -s "$CWD/configs/nvim" "$HOME/.config/nvim" echo "[INFO] Neovim config linked with symbolic link : $CWD/configs/nvim -> $HOME/.config/nvim"