rc git: Support notes
This commit is contained in:
parent
93f913705a
commit
7dd81ec516
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -14,8 +18,14 @@ hook -group git-commit-highlight global WinSetOption filetype=git-commit %{
|
||||||
add-highlighter window/git-commit-highlight/comments/ regex "\b(?:(modified)|(deleted)|(new file)|(renamed|copied)):([^\n]*)$" 1:yellow 2:red 3:green 4:blue 5:magenta
|
add-highlighter window/git-commit-highlight/comments/ regex "\b(?:(modified)|(deleted)|(new file)|(renamed|copied)):([^\n]*)$" 1:yellow 2:red 3:green 4:blue 5:magenta
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hook -group git-commit-highlight global WinSetOption filetype=git-notes %{
|
||||||
|
add-highlighter window/git-notes-highlight regex '^\h*#[^\n]*$' 0:cyan
|
||||||
|
}
|
||||||
|
|
||||||
hook -group git-commit-highlight global WinSetOption filetype=(?!git-commit).* %{ remove-highlighter window/git-commit-highlight }
|
hook -group git-commit-highlight global WinSetOption filetype=(?!git-commit).* %{ remove-highlighter window/git-commit-highlight }
|
||||||
|
|
||||||
|
hook -group git-commit-highlight global WinSetOption filetype=(?!git-notes).* %{ 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user