From 54a86c8c72c32c4b42106f9c0ca67c65bcd1c3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20=F0=9F=9A=B6?= Date: Fri, 22 Dec 2023 15:22:09 +1100 Subject: [PATCH] Separate neovim cleanup to its own function --- zshrc.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zshrc.sh b/zshrc.sh index 06f142c..416f689 100644 --- a/zshrc.sh +++ b/zshrc.sh @@ -316,14 +316,9 @@ myzsh_install_nerd_fonts() { myzsh_install_neovim() { myzsh_install_nerd_fonts myzsh_brew_install_or_upgrade neovim stylua - npm install -g neovim tree-sitter-cli - python3 -m pip install pynvim } -myzsh_uninstall_neovim() { - myzsh_brew_uninstall neovim stylua - npm uninstall -g neovim tree-sitter-cli - python3 -m pip uninstall -y pynvim +myzsh_cleanup_neovim() { rm -rf "$MYZSH_INSTALLED_DIR"/nvim/plugin/packer_compiled.lua rm -rf "$HOME"/.config/nvim rm -rf "$HOME"/.local/share/nvim @@ -331,6 +326,11 @@ myzsh_uninstall_neovim() { rm -rf "$HOME"/.cache/nvim } +myzsh_uninstall_neovim() { + myzsh_brew_uninstall neovim stylua + myzsh_cleanup_neovim +} + # Mac key repeat for vscode ################################################################################