mirror of
https://github.com/neovim/neovim.git
synced 2026-04-22 15:25:30 +00:00
vim-patch:9.1.1133: filetype: xkb files not recognized everywhere
Problem: filetype: xkb files not recognized everywhere
Solution: detect xkb files in more places
(David Mandelberg)
References:
https://xkbcommon.org/doc/current/user-configuration.html#user-config-locations
closes: vim/vim#16684
b62bf81488
Co-authored-by: David Mandelberg <david@mandelberg.org>
This commit is contained in:
committed by
Christian Clason
parent
90958c3648
commit
010684e024
@@ -2150,11 +2150,6 @@ local pattern = {
|
||||
['/usr/.*/gnupg/options%.skel$'] = 'gpg',
|
||||
['/usr/share/upstart/.*%.conf$'] = 'upstart',
|
||||
['/usr/share/upstart/.*%.override$'] = 'upstart',
|
||||
['/usr/share/X11/xkb/compat/'] = detect_xkb,
|
||||
['/usr/share/X11/xkb/geometry/'] = detect_xkb,
|
||||
['/usr/share/X11/xkb/keycodes/'] = detect_xkb,
|
||||
['/usr/share/X11/xkb/symbols/'] = detect_xkb,
|
||||
['/usr/share/X11/xkb/types/'] = detect_xkb,
|
||||
},
|
||||
['/var/'] = {
|
||||
['/var/backups/group%.bak$'] = 'group',
|
||||
@@ -2329,6 +2324,13 @@ local pattern = {
|
||||
['^Neomuttrc'] = detect_neomuttrc,
|
||||
['%.neomuttdebug'] = 'neomuttlog',
|
||||
},
|
||||
['/%.?xkb/'] = {
|
||||
['/%.?xkb/compat/'] = detect_xkb,
|
||||
['/%.?xkb/geometry/'] = detect_xkb,
|
||||
['/%.?xkb/keycodes/'] = detect_xkb,
|
||||
['/%.?xkb/symbols/'] = detect_xkb,
|
||||
['/%.?xkb/types/'] = detect_xkb,
|
||||
},
|
||||
['^%.'] = {
|
||||
['^%.cshrc'] = detect.csh,
|
||||
['^%.login'] = detect.csh,
|
||||
|
||||
Reference in New Issue
Block a user