mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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: vim/vim#13271
3d90f71b76
vim-patch:b6d01f13: runtime(just): Correct filetype detection pattern and style
Co-authored-by: dundargoc <gocdundar@gmail.com>
This commit is contained in:
parent
f67517bba3
commit
1338140ee3
@ -565,6 +565,7 @@ local extension = {
|
||||
libsonnet = 'jsonnet',
|
||||
jsp = 'jsp',
|
||||
jl = 'julia',
|
||||
just = 'just',
|
||||
kdl = 'kdl',
|
||||
kv = 'kivy',
|
||||
kix = 'kix',
|
||||
@ -1331,6 +1332,7 @@ local filename = {
|
||||
['.jsfmtrc'] = 'jsonc',
|
||||
['.jshintrc'] = 'jsonc',
|
||||
['.swrc'] = 'jsonc',
|
||||
['.justfile'] = 'just',
|
||||
Kconfig = 'kconfig',
|
||||
['Kconfig.debug'] = 'kconfig',
|
||||
['lftp.conf'] = 'lftp',
|
||||
@ -1715,6 +1717,7 @@ local pattern = {
|
||||
['org%.eclipse%..*%.prefs'] = 'jproperties',
|
||||
['.*%.properties_.._.._.*'] = starsetf('jproperties'),
|
||||
['[jt]sconfig.*%.json'] = 'jsonc',
|
||||
['[jJ]ustfile'] = 'just',
|
||||
['Kconfig%..*'] = starsetf('kconfig'),
|
||||
['.*%.[Ss][Uu][Bb]'] = 'krl',
|
||||
['lilo%.conf.*'] = starsetf('lilo'),
|
||||
|
@ -340,6 +340,7 @@ func s:GetFilenameChecks() abort
|
||||
\ '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'],
|
||||
|
Loading…
Reference in New Issue
Block a user