change from gitlab to FoGit dotfiles
This commit is contained in:
+4
-4
@@ -69,14 +69,14 @@ foreach ($pkg in $packages) {
|
|||||||
scoop install $pkg
|
scoop install $pkg
|
||||||
|
|
||||||
if ($pkg -eq "main/neovim") {
|
if ($pkg -eq "main/neovim") {
|
||||||
Write-Host "==> Fetching Neovim config (init.lua) from GitLab..." -ForegroundColor Cyan
|
Write-Host "==> Fetching Neovim config (init.lua) from FoGit..." -ForegroundColor Cyan
|
||||||
|
|
||||||
$nvimConfigDir = "$HOME\AppData\Local\nvim"
|
$nvimConfigDir = "$HOME\AppData\Local\nvim"
|
||||||
New-Item -ItemType Directory -Force -Path $nvimConfigDir | Out-Null
|
New-Item -ItemType Directory -Force -Path $nvimConfigDir | Out-Null
|
||||||
|
|
||||||
Invoke-RestMethod `
|
Invoke-RestMethod `
|
||||||
-Uri "https://gitlab.com/api/v4/projects/bartal-lsn%2Fdotfiles/repository/files/nvim%2F.config%2Fnvim%2Finit.lua/raw?ref=main" `
|
-Uri "https://git.flo.fo/FLO/dotfiles/raw/branch/main/nvim/.config/nvim/init.lua" `
|
||||||
-OutFile "$nvimConfigDir\init.lua"
|
-OutFile "$nvimConfigDir\init.lua"
|
||||||
|
|
||||||
Write-Host "==> Neovim config saved to $nvimConfigDir\init.lua" -ForegroundColor Green
|
Write-Host "==> Neovim config saved to $nvimConfigDir\init.lua" -ForegroundColor Green
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user