mirror of
https://github.com/neovim/neovim.git
synced 2026-03-25 18:10:56 +00:00
vim-patch:9.1.0316: filetype: some sh and confini files not recognized
Problem: filetype: some sh and confini files not recognized
Solution: Detect neofetch, '.xprofile', XDG-User-Dirs files,
paru and makepkg config files
(Wu, Zhenyu)
See:
- https://github.com/dylanaraps/neofetch/wiki/Customizing-Info#config-file-location
- https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
closes: vim/vim#14505
5a9f7e6750
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
@@ -1350,7 +1350,8 @@ local filename = {
|
||||
['.wakatime.cfg'] = 'dosini',
|
||||
['nfs.conf'] = 'dosini',
|
||||
['nfsmount.conf'] = 'dosini',
|
||||
['/etc/pacman.conf'] = 'confini',
|
||||
['pacman.conf'] = 'confini',
|
||||
['paru.conf'] = 'confini',
|
||||
['mpv.conf'] = 'confini',
|
||||
dune = 'dune',
|
||||
jbuild = 'dune',
|
||||
@@ -1568,6 +1569,11 @@ local filename = {
|
||||
['/etc/serial.conf'] = 'setserial',
|
||||
['/etc/udev/cdsymlinks.conf'] = 'sh',
|
||||
['.ash_history'] = 'sh',
|
||||
['makepkg.conf'] = 'sh',
|
||||
['.makepkg.conf'] = 'sh',
|
||||
['user-dirs.dirs'] = 'sh',
|
||||
['user-dirs.defaults'] = 'sh',
|
||||
['.xprofile'] = 'sh',
|
||||
['bash.bashrc'] = detect.bash,
|
||||
bashrc = detect.bash,
|
||||
['.bashrc'] = detect.bash,
|
||||
@@ -1765,7 +1771,6 @@ local pattern = {
|
||||
['php%.ini%-.*'] = 'dosini',
|
||||
['.*/%.aws/config'] = 'confini',
|
||||
['.*/%.aws/credentials'] = 'confini',
|
||||
['.*/etc/pacman%.conf'] = 'confini',
|
||||
['.*/etc/yum%.conf'] = 'dosini',
|
||||
['.*/lxqt/.*%.conf'] = 'dosini',
|
||||
['.*/screengrab/.*%.conf'] = 'dosini',
|
||||
@@ -2047,6 +2052,7 @@ local pattern = {
|
||||
['.*/etc/services'] = 'services',
|
||||
['.*/etc/serial%.conf'] = 'setserial',
|
||||
['.*/etc/udev/cdsymlinks%.conf'] = 'sh',
|
||||
['.*/neofetch/config%.conf'] = 'sh',
|
||||
['%.bash[_%-]aliases'] = detect.bash,
|
||||
['%.bash[_%-]history'] = detect.bash,
|
||||
['%.bash[_%-]logout'] = detect.bash,
|
||||
|
||||
Reference in New Issue
Block a user