# HG changeset patch # User Christian Brabandt # Date 1711905306 -7200 # Node ID 49035eb530e1447c0dc68ca9297c74fdaf176af2 # Parent 880901b9d94079a451ec4d0ef5f3ef86a523b6ee patch 9.1.0238: filetype: jupyterlab and sublime config are not recognized Commit: https://github.com/vim/vim/commit/75c607dff7c9e02766ae0fd3588e08da00394d0f Author: Wu, Zhenyu Date: Sun Mar 31 19:08:07 2024 +0200 patch 9.1.0238: filetype: jupyterlab and sublime config are not recognized Problem: filetype: jupyterlab and sublime config are not recognized Solution: Detect jupyterlab and sublime config files as json (Wu, Zhenyu) closes: #14359 Signed-off-by: Wu, Zhenyu Signed-off-by: Christian Brabandt diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1098,8 +1098,11 @@ au BufNewFile,BufRead *.json-patch setf " Geojson is also json au BufNewFile,BufRead *.geojson setf json -" Jupyter Notebook is also json -au BufNewFile,BufRead *.ipynb setf json +" Jupyter Notebook and jupyterlab config is also json +au BufNewFile,BufRead *.ipynb,*.jupyterlab-settings setf json + +" Sublime config +au BufNewFile,BufRead *.sublime-project,*.sublime-settings,*.sublime-workspace setf json " Other files that look like json au BufNewFile,BufRead .prettierrc,.firebaserc,.stylelintrc setf json diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -350,7 +350,7 @@ def s:GetFilenameChecks(): dict