Преглед на файлове

fix(installer): only install treesitter-cli if it's missing (#3740)

LostNeophyte преди 2 години
родител
ревизия
5b8bfc8511
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      utils/installer/install.sh

+ 4 - 1
utils/installer/install.sh

@@ -39,8 +39,11 @@ declare -a __lvim_dirs=(
 
 declare -a __npm_deps=(
   "neovim"
-  "tree-sitter-cli"
 )
+# treesitter installed with brew causes conflicts #3738
+if ! command -v tree-sitter &>/dev/null; then
+  __npm_deps+=("tree-sitter-cli")
+fi
 
 declare -a __pip_deps=(
   "pynvim"