summaryrefslogtreecommitdiff
path: root/utils/installer/install.ps1
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-10-24 12:56:56 +0200
committerGitHub <[email protected]>2021-10-24 12:56:56 +0200
commitefe30f26a7c5a927c24cec17d23bef3bea5114ee (patch)
treea63ce02c240d2d57da47bd741f794ed87da06981 /utils/installer/install.ps1
parent674588a375ce354e77dc6ced858e7c5efcbf67d9 (diff)
chore: update docs to reflect recent changes (#1841)
Diffstat (limited to 'utils/installer/install.ps1')
-rw-r--r--utils/installer/install.ps17
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/installer/install.ps1 b/utils/installer/install.ps1
index 4ec499c6..c46bbfc2 100644
--- a/utils/installer/install.ps1
+++ b/utils/installer/install.ps1
@@ -222,8 +222,11 @@ function setup_lvim() {
New-Item "$env:LUNARVIM_CONFIG_DIR" -ItemType Directory
}
- Copy-Item "$env:LUNARVIM_RUNTIME_DIR\lvim\utils\installer\config.example-no-ts.lua" `
- "$env:LUNARVIM_CONFIG_DIR\config.lua"
+ if (Test-Path "$env:LUNARVIM_CONFIG_DIR\config.lua") {
+ Remove-Item -Force "$env:LUNARVIM_CONFIG_DIR\config.lua"
+ }
+
+ Out-File -FilePath "$env:LUNARVIM_CONFIG_DIR\config.lua"
Write-Output "Packer setup complete"