From b61894fcc9369a2b1420b6899d2b1ebb42fa30db Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 16 Oct 2024 14:55:25 +0200 Subject: [PATCH] vim:ftplug:gitcommit:TODO: Adjust subject length limit --- .config/vim/ftplugin/gitcommit.vim | 6 ++++++ .local/share/vim/spell/foo | 0 2 files changed, 6 insertions(+) create mode 100644 .local/share/vim/spell/foo diff --git a/.config/vim/ftplugin/gitcommit.vim b/.config/vim/ftplugin/gitcommit.vim index 05b7697..1c87f01 100644 --- a/.config/vim/ftplugin/gitcommit.vim +++ b/.config/vim/ftplugin/gitcommit.vim @@ -7,3 +7,9 @@ setlocal spell spelllang=en " Disable gutentags as it seems to regenerate the entire tags file when editing " git-commits... let g:gutentags_enabled = 0 + +" Red highlight of overflow should come at 60 chars, not 50. +" TODO: highlight chars >50, but <60 in yellow, see +" /usr/share/nvim/runtime/syntax/gitcommit.vim +" (see a376ff7b784c ("hooks:commit-msg: Relax subject length limit to 60")) +"let g:gitcommit_summary_length = 60 diff --git a/.local/share/vim/spell/foo b/.local/share/vim/spell/foo new file mode 100644 index 0000000..e69de29