2017-09-08 13:44:55 +02:00
|
|
|
# https://www.mercurial-scm.org/
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
# Detection
|
|
|
|
# ‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook global BufCreate .*hg-editor-\w+\.txt$ %{
|
2017-11-03 08:34:41 +01:00
|
|
|
set-option buffer filetype hg-commit
|
2017-09-08 13:44:55 +02:00
|
|
|
}
|
|
|
|
|
2019-03-13 19:15:59 +01:00
|
|
|
hook -once global BufSetOption filetype=hg-commit %{
|
|
|
|
require-module hg-commit
|
|
|
|
}
|
|
|
|
|
|
|
|
provide-module hg-commit %{
|
|
|
|
|
|
|
|
# Faces
|
|
|
|
# ‾‾‾‾‾
|
|
|
|
|
|
|
|
set-face global MercurialCommitComment cyan
|
|
|
|
|
2017-09-08 13:44:55 +02:00
|
|
|
# Highlighters
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook -group hg-commit-highlight global WinSetOption filetype=hg-commit %{
|
2018-07-26 10:59:42 +02:00
|
|
|
add-highlighter window/ group hg-commit-highlight
|
2018-08-09 11:27:40 +02:00
|
|
|
add-highlighter window/hg-commit-highlight regex '^HG:[^\n]*' 0:comment
|
2018-12-11 00:11:35 +01:00
|
|
|
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/hg-commit-highlight }
|
2017-09-08 13:44:55 +02:00
|
|
|
}
|
2019-03-13 19:15:59 +01:00
|
|
|
|
|
|
|
}
|