This commit is contained in:
dogeystamp 2024-08-15 17:44:07 -04:00
parent 73aa4f5f23
commit 3c5f166d46

View File

@ -2,7 +2,6 @@
{{- $roamingconfdirs := list "alacritty" "nushell" -}} {{- $roamingconfdirs := list "alacritty" "nushell" -}}
{{- $localconfdirs := list "nvim" -}} {{- $localconfdirs := list "nvim" -}}
{{- $localdatadirs := list "nvim-data/site" -}}
{{- if eq .chezmoi.os "windows" -}} {{- if eq .chezmoi.os "windows" -}}
$userdir = ([Environment]::GetFolderPath("UserProfile")) $userdir = ([Environment]::GetFolderPath("UserProfile"))
@ -21,10 +20,8 @@ If (-Not (Test-Path $localconfdir\{{ . }})) {
} }
{{ end }} {{ end }}
{{ range $localdatadirs }} If (-Not (Test-Path $localconfdir\nvim-data\site)) {
If (-Not (Test-Path $localconfdir\{{ . }})) { New-Item -Path $localconfdir\nvim-data\site -ItemType Junction -Value $userdir\.local\share\nvim\site
New-Item -Path $localconfdir\{{ . }} -ItemType Junction -Value $userdir\.local\share\{{ . }}
} }
{{ end }}
{{- end -}} {{- end -}}