Follow up: #32114 Closes #33274 Use the new support for language-specific rewrap_prefixes added in https://github.com/zed-industries/zed/pull/33702. Release Notes: - Fix git commit message line break getting stripped after committing. --------- Signed-off-by: Umesh Yadav <git@umesh.dev>
25 lines
663 B
TOML
25 lines
663 B
TOML
name = "Git Commit"
|
|
grammar = "gitcommit"
|
|
path_suffixes = [
|
|
"TAG_EDITMSG",
|
|
"MERGE_MSG",
|
|
"COMMIT_EDITMSG",
|
|
"NOTES_EDITMSG",
|
|
"EDIT_DESCRIPTION",
|
|
]
|
|
line_comments = ["#"]
|
|
brackets = [
|
|
{ start = "(", end = ")", close = true, newline = false },
|
|
{ start = "`", end = "`", close = true, newline = false },
|
|
{ start = "\"", end = "\"", close = true, newline = false },
|
|
{ start = "'", end = "'", close = true, newline = false },
|
|
{ start = "{", end = "}", close = true, newline = false },
|
|
{ start = "[", end = "]", close = true, newline = false },
|
|
]
|
|
rewrap_prefixes = [
|
|
"[-*+]\\s+",
|
|
"\\d+\\.\\s+",
|
|
">\\s*",
|
|
"[-*+]\\s+\\[[\\sx]\\]\\s+"
|
|
]
|