aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorDietrich Moerman <dietrich.moerman@gmail.com>2025-08-10 15:42:57 +0200
committerGitHub <noreply@github.com>2025-08-10 13:42:57 +0000
commit47e3aecb78c7beede6a4e2822abb450fcb6c72ea (patch)
tree9de03b532e8a8f37571dca84877f7f20a6f0f809 /runtime/lua/vim
parent9d85f086d9a9536fd511089c04fc2acc6b0fbe7d (diff)
downloadrneovim-47e3aecb78c7beede6a4e2822abb450fcb6c72ea.tar.gz
rneovim-47e3aecb78c7beede6a4e2822abb450fcb6c72ea.tar.bz2
rneovim-47e3aecb78c7beede6a4e2822abb450fcb6c72ea.zip
vim-patch:9.1.1620: filetype: composer.lock and symfony.lock files not recognized (#35291)
Problem: filetype: composer.lock and symfony.lock files not recognized Solution: Detect composer.lock and symfony.lock files as json filetype (Dietrich Moerman) closes: vim/vim#17945 https://github.com/vim/vim/commit/4fca92faa2079d4bb1ece3bd31a4278881a7dacb
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index a54ceb6575..115f605b91 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1679,6 +1679,8 @@ local filename = {
['deno.lock'] = 'json',
['flake.lock'] = 'json',
['.swcrc'] = 'json',
+ ['composer.lock'] = 'json',
+ ['symfony.lock'] = 'json',
['.babelrc'] = 'jsonc',
['.eslintrc'] = 'jsonc',
['.hintrc'] = 'jsonc',