diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-10-23 19:24:52 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-10-24 10:15:47 +0200 |
commit | 94fee354465d7d8636f454a9bcca9080ef9e50bd (patch) | |
tree | 83b926ab6f904461fd064d17ffb29f13b34b8c38 /runtime/lua | |
parent | 5f0224e848740eaf8fa68fe9cd89b060b31616fc (diff) | |
download | rneovim-94fee354465d7d8636f454a9bcca9080ef9e50bd.tar.gz rneovim-94fee354465d7d8636f454a9bcca9080ef9e50bd.tar.bz2 rneovim-94fee354465d7d8636f454a9bcca9080ef9e50bd.zip |
vim-patch:9.0.2061: not able to detect xkb filetypes
Problem: not able to detect xkb filetypes
Solution: Detect files below /u/s/X11/xkb as xkb files (without adding
an extra filetype)
Those files are used from the X11 xkb extension
closes: vim/vim#13401
https://github.com/vim/vim/commit/ae9021a840db3253b0e0cb84186faae73368afd7
Co-authored-by: Guido Cella <guido@guidocella.xyz>
Diffstat (limited to 'runtime/lua')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index ec3f89da32..763ed99914 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1982,6 +1982,11 @@ local pattern = { ['.*/Xresources/.*'] = starsetf('xdefaults'), ['.*/app%-defaults/.*'] = starsetf('xdefaults'), ['.*/etc/xinetd%.conf'] = 'xinetd', + ['.*/usr/share/X11/xkb/compat/.*'] = starsetf('xkb'), + ['.*/usr/share/X11/xkb/geometry/.*'] = starsetf('xkb'), + ['.*/usr/share/X11/xkb/keycodes/.*'] = starsetf('xkb'), + ['.*/usr/share/X11/xkb/symbols/.*'] = starsetf('xkb'), + ['.*/usr/share/X11/xkb/types/.*'] = starsetf('xkb'), ['.*/etc/blkid%.tab'] = 'xml', ['.*/etc/blkid%.tab%.old'] = 'xml', ['.*%.vbproj%.user'] = 'xml', |