1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-01 16:32:54 +03:00

Recognize .gitconfig syntax

This commit is contained in:
Maxim Baz 2018-07-08 18:10:12 +02:00
parent c58457a3c0
commit 4cc336708f
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335

View File

@ -2,6 +2,10 @@ hook global BufCreate .*(COMMIT_EDITMSG|MERGE_MSG) %{
set-option buffer filetype git-commit
}
hook global BufCreate .*(\.gitconfig|git/config) %{
set-option buffer filetype ini
}
hook -group git-commit-highlight global WinSetOption filetype=git-commit %{
add-highlighter window/git-commit-highlight group
add-highlighter window/git-commit-highlight/ regex "^\h*#[^\n]*\n" 0:cyan,default