76 lines
3.1 KiB
TOML
76 lines
3.1 KiB
TOML
{{- $refreshPeriod := "140h" }}
|
|
{{- $vimPlugins := .plugins.vim }}
|
|
{{- range $vimPlugin := $vimPlugins }}
|
|
{{- $folderName := trimSuffix ".git" (last (splitList "/" $vimPlugin)) }}
|
|
[".vim/plugged/{{ $folderName }}"]
|
|
type = "git-repo"
|
|
url = "{{ $vimPlugin }}"
|
|
refreshPeriod = "{{ $refreshPeriod }}"
|
|
[".vim/plugged/{{ $folderName }}".pull]
|
|
args = ["--ff-only"]
|
|
{{- end }}
|
|
|
|
[".local/share/delta//themes.gitconfig"]
|
|
type = "file"
|
|
url = "https://raw.githubusercontent.com/dandavison/delta/master/themes.gitconfig"
|
|
refreshPeriod = "{{ $refreshPeriod }}"
|
|
|
|
### Hack Nerd Font Download
|
|
{{- if not .host.headless }}
|
|
|
|
{{- $fontDir := "" }}
|
|
{{- $fontUrlBase := "https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack"}}
|
|
{{- if eq .host.distro.family "darwin" }}
|
|
{{- $fontDir = "Library/Fonts" }}
|
|
{{- else if eq .host.distro.family "linux" }}
|
|
{{- $fontDir = ".local/share/fonts" }}
|
|
{{- else if eq .host.distro.family "windows" }}
|
|
{{- $fontDir = "Windows/Fonts" }}
|
|
{{- end }}
|
|
|
|
["{{ $fontDir }}/Hack-Regular-Nerd-Font.ttf"]
|
|
type = "file"
|
|
{{- if eq .host.distro.family "windows" }}
|
|
url = "{{ $fontUrlBase }}/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete%20Windows%20Compatible.ttf"
|
|
{{- else }}
|
|
url = "{{ $fontUrlBase }}/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf"
|
|
{{- end }}
|
|
refreshPeriod = "{{ $refreshPeriod }}"
|
|
|
|
["{{ $fontDir }}/Hack-Bold-Nerd-Font.ttf"]
|
|
type = "file"
|
|
{{- if eq .host.distro.family "windows" }}
|
|
url = "{{ $fontUrlBase }}/Bold/complete/Hack%20Bold%20Nerd%20Font%20Complete%20Windows%20Compatible.ttf"
|
|
{{- else }}
|
|
url = "{{ $fontUrlBase }}/Bold/complete/Hack%20Bold%20Nerd%20Font%20Complete.ttf"
|
|
{{- end }}
|
|
refreshPeriod = "{{ $refreshPeriod }}"
|
|
|
|
["{{ $fontDir }}/Hack-Italic-Nerd-Font.ttf"]
|
|
type = "file"
|
|
{{- if eq .host.distro.family "windows" }}
|
|
url = "{{ $fontUrlBase }}/Italic/complete/Hack%20Italic%20Nerd%20Font%20Complete%20Windows%20Compatible.ttf"
|
|
{{- else }}
|
|
url = "{{ $fontUrlBase }}/Italic/complete/Hack%20Italic%20Nerd%20Font%20Complete.ttf"
|
|
{{- end }}
|
|
refreshPeriod = "{{ $refreshPeriod }}"
|
|
|
|
["{{ $fontDir }}/Hack-Bold-Italic-Nerd-Font.ttf"]
|
|
type = "file"
|
|
{{- if eq .host.distro.family "windows" }}
|
|
url = "{{ $fontUrlBase }}/BoldItalic/complete/Hack%20Bold%20Italic%20Nerd%20Font%20Complete%20Windows%20Compatible.ttf"
|
|
{{- else }}
|
|
url = "{{ $fontUrlBase }}/BoldItalic/complete/Hack%20Bold%20Italic%20Nerd%20Font%20Complete.ttf"
|
|
{{- end }}
|
|
refreshPeriod = "{{ $refreshPeriod }}"
|
|
|
|
### ZillaSlab Font Download
|
|
{{- $fontUrlBase := "https://github.com/typotheque/zilla-slab/raw/master/fonts_TTF"}}
|
|
{{- $fonts := list "ZillaSlab-Bold.ttf" "ZillaSlab-BoldItalic.ttf" "ZillaSlab-Italic.ttf" "ZillaSlab-Light.ttf" "ZillaSlab-LightItalic.ttf" "ZillaSlab-Medium.ttf" "ZillaSlab-MediumItalic.ttf" "ZillaSlab-Regular.ttf" "ZillaSlab-SemiBold.ttf" "ZillaSlab-SemiBoldItalic.ttf" "ZillaSlabHighlight-Bold.ttf" "ZillaSlabHighlight-Regular.ttf" }}
|
|
{{- range $font := $fonts }}
|
|
["{{ $fontDir }}/{{ $font }}"]
|
|
type = "file"
|
|
url = "{{ $fontUrlBase }}/{{ $font }}"
|
|
refreshPeriod = "{{ $refreshPeriod }}"
|
|
{{- end }}
|
|
{{- end }}
|