mirror of https://github.com/helix-editor/helix
languages: Also include `gitconfig` as an extension (#13115)
This is useful for maintaining syntax highlighting when editing git config files which have been included via `include` or `includeIf`.pull/13121/head
parent
9574e551cf
commit
e56d3abb0a
|
@ -1843,7 +1843,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-regex", rev = "e1cf
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "git-config"
|
name = "git-config"
|
||||||
scope = "source.gitconfig"
|
scope = "source.gitconfig"
|
||||||
file-types = [{ glob = ".gitmodules" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }]
|
file-types = ["gitconfig", { glob = ".gitmodules" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }]
|
||||||
injection-regex = "git-config"
|
injection-regex = "git-config"
|
||||||
comment-token = "#"
|
comment-token = "#"
|
||||||
indent = { tab-width = 4, unit = "\t" }
|
indent = { tab-width = 4, unit = "\t" }
|
||||||
|
|
Loading…
Reference in New Issue