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/alen.json | 42 ++++++++++++++++++++++++++++++++++++++++++ dot_config/nano/nanorc.tmpl | 13 +++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 dot_config/nano/alen.json create mode 100644 dot_config/nano/nanorc.tmpl (limited to 'dot_config') diff --git a/dot_config/nano/alen.json b/dot_config/nano/alen.json new file mode 100644 index 0000000..c647239 --- /dev/null +++ b/dot_config/nano/alen.json @@ -0,0 +1,42 @@ +{ + "set": { + "afterends": true, + "atblanks": true, + "nonewlines": true, + "historylog": true, + "linenumbers": true, + "locking": true, + "multibuffer": true, + "positionlog": true, + "quickblank": true, + "regexp": true, + "smarthome": true, + "suspend": true, + "suspendable": true, + "tabsize 4": true, + "tabstospaces": true, + "whitespace": "»·", + "zap": true, + "indicator": true, + "guidestripe 80": true, + "stateflags": true, + "magic": true + }, + "bind": { + "^Z": "suspend main" + }, + "unbind": {}, + "theme": { + "titlecolor": "bold,white,blue", + "statuscolor": "bold,white,green", + "errorcolor": "bold,white,red", + "selectedcolor": "bold,white,magenta", + "stripecolor": ",yellow", + "numbercolor": "cyan", + "keycolor": "cyan", + "functioncolor": "green", + "scrollercolor": "cyan", + "promptcolor": "lightwhite,grey", + "spotlightcolor": "black,yellow" + } +} \ No newline at end of file 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