Skip to content
Snippets Groups Projects
Commit e4c4c181 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

syntax/magit.vim: make title limit configurable

parent d4d88c34
No related branches found
No related tags found
No related merge requests found
......@@ -309,6 +309,12 @@ Git command, may be simply simply "git" if git is in your path. Defualt is "git"
To disable chatty inline help in magit buffer (default 1)
> let g:magit_show_help=[01]
#### g:magit_commit_title_limit
Text is grayed if first line of commit message exceed this number of character (default 50)
> let g:magit_commit_title_limit=[0..300]
#### g:magit_default_show_all_files
When this variable is set to 0, all diff files are hidden by default.
......
......@@ -351,6 +351,13 @@ let g:magit_git_cmd="git"
To disable chatty inline help in magit buffer (default 1)
let g:magit_show_help=[01]
*vimagit-g:magit_commit_title_limit*
Text is grayed if first line of commit message exceed this number of character
(default 50)
let g:magit_commit_title_limit=[0..300]
*vimagit-g:magit_default_show_all_files*
When this variable is set to 0, all diff files are hidden by default.
When this variable is set to 1, all diff for modified files are shown by default.
......
......@@ -59,6 +59,9 @@ let g:magit_discard_untracked_do_delete = get(g:, 'magit_discard_untracked_do_de
let g:magit_refresh_gutter = get(g:, 'magit_refresh_gutter' , 1)
" Should deprecate the following
let g:magit_refresh_gitgutter = get(g:, 'magit_refresh_gitgutter', 0)
let g:magit_commit_title_limit = get(g:, 'magit_commit_title_limit', 50)
let g:magit_warning_max_lines = get(g:, 'magit_warning_max_lines', 10000)
let g:magit_git_cmd = get(g:, 'magit_git_cmd' , "git")
......
......@@ -13,7 +13,7 @@ syn include @diff syntax/diff.vim
execute 'syn match titleEntry "' . g:magit_section_re . '\n=\+"'
hi def link titleEntry Comment
execute 'syn match commitMsgExceed "\(=\+\n.\{50}\)\@<=.*$"'
execute 'syn match commitMsgExceed "\(=\+\n.\{' . g:magit_commit_title_limit . '}\)\@<=.*$"'
hi def link commitMsgExceed Comment
execute 'syn match stashEntry "' . g:magit_stash_re . '"'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment