From d21114c451c9c2a9bf9f5c285fd70e424e838af9 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Thu, 6 Mar 2025 09:06:23 +0100 Subject: [PATCH] Nano better syntax highlighting --- .gitignore | 4 ++-- .gitmodules | 3 +++ {.nanobackup => .nano/backup}/.gitkeep | 0 .nano/syntax | 1 + .nanorc | 20 +++++++++++--------- 5 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 .gitmodules rename {.nanobackup => .nano/backup}/.gitkeep (100%) create mode 160000 .nano/syntax diff --git a/.gitignore b/.gitignore index e619cd3..33fab8d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ # Nano Backup-Dateien ignorieren -.nanobackup/*~ -.nanobackup/*~.[0-9]* +.nano/backup/*~ +.nano/backup/*~.[0-9]* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..25cefae --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".nano/syntax"] + path = .nano/syntax + url = https://github.com/serialhex/nano-highlight.git diff --git a/.nanobackup/.gitkeep b/.nano/backup/.gitkeep similarity index 100% rename from .nanobackup/.gitkeep rename to .nano/backup/.gitkeep diff --git a/.nano/syntax b/.nano/syntax new file mode 160000 index 0000000..d3fdc6a --- /dev/null +++ b/.nano/syntax @@ -0,0 +1 @@ +Subproject commit d3fdc6a29658503f8b19bff1a0809406859f7f06 diff --git a/.nanorc b/.nanorc index 4440ebf..d6113db 100644 --- a/.nanorc +++ b/.nanorc @@ -1,9 +1,11 @@ -set autoindent -set backup -set backupdir "/home/daniel/.nanobackup" -set constantshow -set indicator -set linenumbers -set mouse -set noconvert -set multibuffer +set autoindent # Automatic indent +set backup # Create backup files +set backupdir "~/.nano/backup" # Backup directory +set constantshow # Cursor position in statusbar +set indicator # Should display a scrollbar, but probably deprecated? +set linenumbers # Display line nunberd +set mouse # Mouse support +set noconvert # Don't convert DOS/Mac format automatically +set multibuffer # Multifile support + +include ~/.nano/syntax/*.nanorc # Styles from a third party repo