From 079a789e8cb08ead67f19e1971a1b7438b37354b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Plagborg=20Bak=20S=C3=B8rensen?= <57013304+kpbaks@users.noreply.github.com> Date: Thu, 23 Jul 2026 18:03:37 +0200 Subject: [PATCH] Detect .lfsconfig as git-config language (#16090) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .lfsconfig uses the same configuration file format as git, as documented here https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-config.adoc#lfsconfig Signed-off-by: Kristoffer Plagborg Bak Sørensen Co-authored-by: Kristoffer Plagborg Bak Sørensen --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 6d2cf900..a5403e68 100644 --- a/languages.toml +++ b/languages.toml @@ -2299,7 +2299,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-regex", rev = "b2ac [[language]] name = "git-config" scope = "source.gitconfig" -file-types = ["gitconfig", { glob = ".gitmodules" }, { glob = "gitconfig" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }, { glob = ".git/modules/*/config" }, { glob = "config.worktree" }] +file-types = ["gitconfig", { glob = ".gitmodules" }, { glob = "gitconfig" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }, { glob = ".git/modules/*/config" }, { glob = "config.worktree" }, { glob = ".lfsconfig" }] injection-regex = "git-config" comment-token = "#" indent = { tab-width = 4, unit = "\t" } -- 2.51.2