Nano better syntax highlighting

This commit is contained in:
Daniel Kluge 2025-03-06 09:06:23 +01:00
parent b947ea8050
commit d21114c451
No known key found for this signature in database
5 changed files with 17 additions and 11 deletions

4
.gitignore vendored
View File

@ -1,3 +1,3 @@
# Nano Backup-Dateien ignorieren # Nano Backup-Dateien ignorieren
.nanobackup/*~ .nano/backup/*~
.nanobackup/*~.[0-9]* .nano/backup/*~.[0-9]*

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule ".nano/syntax"]
path = .nano/syntax
url = https://github.com/serialhex/nano-highlight.git

1
.nano/syntax Submodule

@ -0,0 +1 @@
Subproject commit d3fdc6a29658503f8b19bff1a0809406859f7f06

20
.nanorc
View File

@ -1,9 +1,11 @@
set autoindent set autoindent # Automatic indent
set backup set backup # Create backup files
set backupdir "/home/daniel/.nanobackup" set backupdir "~/.nano/backup" # Backup directory
set constantshow set constantshow # Cursor position in statusbar
set indicator set indicator # Should display a scrollbar, but probably deprecated?
set linenumbers set linenumbers # Display line nunberd
set mouse set mouse # Mouse support
set noconvert set noconvert # Don't convert DOS/Mac format automatically
set multibuffer set multibuffer # Multifile support
include ~/.nano/syntax/*.nanorc # Styles from a third party repo