From 1338140ee3ea9355a9cc756f77b8fc71fd27eda5 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 5 Oct 2023 14:42:38 +0200 Subject: 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 https://github.com/vim/vim/commit/3d90f71b764e67b1eb12fc6a9a4b9e2fca6dc087 vim-patch:b6d01f13: runtime(just): Correct filetype detection pattern and style Co-authored-by: dundargoc --- runtime/lua/vim/filetype.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 5ae4e508ef..c412364461 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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'), -- cgit