Merge remote-tracking branch 'lenormf/fix-git-notes'

This commit is contained in:
Maxime Coste 2018-12-28 06:40:13 +11:00
commit f54ba6d4b2

View File

@ -2,6 +2,10 @@ hook global BufCreate .*(COMMIT_EDITMSG|MERGE_MSG) %{
set-option buffer filetype git-commit set-option buffer filetype git-commit
} }
hook global BufCreate .*/NOTES_EDITMSG %{
set-option buffer filetype git-notes
}
hook global BufCreate .*(\.gitconfig|git/config) %{ hook global BufCreate .*(\.gitconfig|git/config) %{
set-option buffer filetype ini set-option buffer filetype ini
} }
@ -16,6 +20,13 @@ hook -group git-commit-highlight global WinSetOption filetype=git-commit %{
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/git-commit-highlight } hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/git-commit-highlight }
} }
hook -group git-commit-highlight global WinSetOption filetype=git-notes %{
add-highlighter window/git-notes-highlight regex '^\h*#[^\n]*$' 0:cyan
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/git-notes-highlight }
}
hook global BufCreate .*git-rebase-todo %{ hook global BufCreate .*git-rebase-todo %{
set-option buffer filetype git-rebase set-option buffer filetype git-rebase
} }