mirror of
https://github.com/vim/vim
synced 2025-07-16 09:12:00 +00:00
patch 9.0.1978: No filetype detection for just files
Problem: No filetype detection for just files Solution: Detect just files (*.just, justfile, etc) closes: #13271 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: dundargoc <gocdundar@gmail.com>
This commit is contained in:
committed by
Christian Brabandt
parent
fe7b20a1a3
commit
3d90f71b76
@ -1093,6 +1093,9 @@ au BufNewFile,BufRead *.jsonnet,*.libsonnet setf jsonnet
|
||||
" Julia
|
||||
au BufNewFile,BufRead *.jl setf julia
|
||||
|
||||
" Just
|
||||
autocmd BufNewFile,BufRead *[jJ]ustfile,.justfile,*.just setfiletype just
|
||||
|
||||
" KDL
|
||||
au BufNewFile,BufRead *.kdl setf kdl
|
||||
|
||||
|
@ -350,6 +350,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
jsonnet: ['file.jsonnet', 'file.libsonnet'],
|
||||
jsp: ['file.jsp'],
|
||||
julia: ['file.jl'],
|
||||
just: ['justfile', 'Justfile', '.justfile', 'config.just'],
|
||||
kconfig: ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
||||
kdl: ['file.kdl'],
|
||||
kivy: ['file.kv'],
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1978,
|
||||
/**/
|
||||
1977,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user