From 9c2aab641b33bcf6cc034406b87cc283e13a660d Mon Sep 17 00:00:00 2001 From: Alen Date: Sat, 23 Sep 2023 21:44:49 +0400 Subject: Add basic nano config --- dot_config/nano/nanorc.tmpl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 dot_config/nano/nanorc.tmpl (limited to 'dot_config/nano/nanorc.tmpl') diff --git a/dot_config/nano/nanorc.tmpl b/dot_config/nano/nanorc.tmpl new file mode 100644 index 0000000..a0de6af --- /dev/null +++ b/dot_config/nano/nanorc.tmpl @@ -0,0 +1,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 -}} -- cgit 1.4.1-2-gfad0