diff options
author | Wu, Zhenyu <wuzhenyu@ustc.edu> | 2024-04-13 18:19:20 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-13 18:19:20 +0200 |
commit | 5a9f7e6750727f81d0638e7ce0ee6bcb01742570 (patch) | |
tree | e01c037fdce7174b522d29f2deb799312a869da0 /runtime/filetype.vim | |
parent | 0881329d129866fa49444e7fb6e622e54285a8ff (diff) |
patch 9.1.0316: filetype: some sh and confini files not recognizedv9.1.0316
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: #14505
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 7f3704fc31..79a9b481fd 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1514,6 +1514,9 @@ au BufNewFile,BufRead Neomuttrc setf neomuttrc " Netrc au BufNewFile,BufRead .netrc setf netrc +" Neofetch +au BufNewFile,BufRead */neofetch/config.conf setf sh + " Nginx au BufNewFile,BufRead *.nginx,nginx*.conf,*nginx.conf,*/etc/nginx/*,*/usr/local/nginx/conf/*,*/nginx/*.conf setf nginx @@ -1604,9 +1607,10 @@ au BufNewFile,BufRead *.org,*.org_archive setf org au BufNewFile,BufRead pf.conf setf pf " ini style config files, using # comments -au BufNewFile,BufRead */etc/pacman.conf,mpv.conf setf confini +au BufNewFile,BufRead pacman.conf,mpv.conf setf confini au BufNewFile,BufRead */.aws/config,*/.aws/credentials setf confini au BufNewFile,BufRead *.nmconnection setf confini +au BufNewFile,BufRead paru.conf setf confini " Pacman hooks au BufNewFile,BufRead *.hook @@ -1614,6 +1618,9 @@ au BufNewFile,BufRead *.hook \ setf confini | \ endif +" Pacman makepkg +au BufNewFile,BufRead {.,}makepkg.conf setf sh + " Pacman log au BufNewFile,BufRead pacman.log setf pacmanlog @@ -2640,12 +2647,18 @@ au BufNewFile,BufRead *.web " Windows Scripting Host and Windows Script Component au BufNewFile,BufRead *.ws[fc] setf wsh +" Xdg-user-dirs +au BufNewFile,BufRead user-dirs.dirs,user-dirs.defaults setf sh + " XHTML au BufNewFile,BufRead *.xhtml,*.xht setf xhtml " X11vnc au BufNewFile,BufRead .x11vncrc setf conf +" Xprofile +au BufNewFile,BufRead .xprofile setf sh + " X Pixmap (dynamically sets colors, this used to trigger on BufEnter to make " it work better, but that breaks setting 'filetype' manually) au BufNewFile,BufRead *.xpm |