Browse Source

fix(installer): don't overwrite previous config (#3154)

Mattherix 2 years ago
parent
commit
0d578ab152
1 changed files with 2 additions and 1 deletions
  1. 2 1
      utils/installer/install.sh

+ 2 - 1
utils/installer/install.sh

@@ -439,7 +439,8 @@ function setup_lvim() {
 
   setup_shim
 
-  cp "$LUNARVIM_BASE_DIR/utils/installer/config.example.lua" "$LUNARVIM_CONFIG_DIR/config.lua"
+  [ ! -f "$LUNARVIM_CONFIG_DIR/config.lua" ] \
+    && cp "$LUNARVIM_BASE_DIR/utils/installer/config.example.lua" "$LUNARVIM_CONFIG_DIR/config.lua"
 
   echo "Preparing Packer setup"