blob: a0de6af8c807bd3ab938abe4910dd4e140a90765 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{{- $nanoVersion := .nano.default_version -}}
{{- if lookPath "nano" -}}
{{- $nanoVersion = index (output "nano" "--version" | split " ") "_4" -}}
{{- end -}}
{{- output "dot_local/bin/nano_config.py" "generate"
"--config" .nano.config
"--version" $nanoVersion -}}
# Extra syntax includes
{{ range .nano.include_paths -}}
{{ if (. | lstat) -}}
include "{{ . }}/*.nanorc"
{{ end -}}
{{- end -}}
|