From 3b497aa2470ff613fed79569bc8589dae8dc3190 Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Sun, 31 Mar 2024 19:51:19 +0200 Subject: patch 9.1.0248: filetype: yarn lock files are not recognized Problem: filetype: yarn lock files are not recognized Solution: Detect 'yarn.lock' files as yaml (Wu, Zhenyu) closes: #14369 Signed-off-by: Wu, Zhenyu Signed-off-by: Christian Brabandt --- runtime/filetype.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/filetype.vim') diff --git a/runtime/filetype.vim b/runtime/filetype.vim index a289c85887..ca4678cce5 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2959,6 +2959,9 @@ au filetypedetect BufNewFile,BufRead,StdinReadPost * \ setf FALLBACK conf | \ endif +" Yarn lock +au BufNewFile,BufRead yarn.lock setf yaml + " If the GUI is already running, may still need to install the Syntax menu. " Don't do it when the 'M' flag is included in 'guioptions'. -- cgit v1.2.3