vim-patch:9.1.1763: filetype: kitty config files are not recognized

Problem:  filetype: kitty config files are not recognized
Solution: Detect */kitty/*.conf as kitty filetype, include a syntax
          script (Shawon).

closes: vim/vim#18280

a946ccf5ff

Co-authored-by: Shawon <mdmoinulhossainshawon@gmail.com>
This commit is contained in:
zeertzjq
2025-09-17 08:26:49 +08:00
parent 4ef5624729
commit 114336ac1d
3 changed files with 121 additions and 0 deletions

View File

@@ -1702,6 +1702,7 @@ local filename = {
Kconfig = 'kconfig',
['Kconfig.debug'] = 'kconfig',
['Config.in'] = 'kconfig',
['kitty.conf'] = 'kitty',
['ldaprc'] = 'ldapconf',
['.ldaprc'] = 'ldapconf',
['ldap.conf'] = 'ldapconf',
@@ -2302,6 +2303,7 @@ local pattern = {
['^${GNUPGHOME}/gpg%.conf$'] = 'gpg',
['/boot/grub/grub%.conf$'] = 'grub',
['/hypr/.*%.conf$'] = 'hyprlang',
['/kitty/.*%.conf$'] = 'kitty',
['^lilo%.conf'] = starsetf('lilo'),
['^named.*%.conf$'] = 'named',
['^rndc.*%.conf$'] = 'named',