Commit: patch 9.1.0293: filetype: lxqt config files are not recognized

4 views
Skip to first unread message

Christian Brabandt

unread,
Apr 9, 2024, 4:45:09 PM4/9/24
to vim...@googlegroups.com
patch 9.1.0293: filetype: lxqt config files are not recognized

Commit: https://github.com/vim/vim/commit/41208884b8c1a73b42ddb6c1e5f008dae6aa0a83
Author: Wu, Zhenyu <wuzh...@ustc.edu>
Date: Tue Apr 9 22:39:53 2024 +0200

patch 9.1.0293: filetype: lxqt config files are not recognized

Problem: filetype: lxqt config files are not recognized
Solution: Detect {lxqt,screengrab}/*.conf files as dosini,
fix failing filetype test for */tex/latex/**.cfg
(Wu, Zhenyu)

closes: #14450

Signed-off-by: Wu, Zhenyu <wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index d8020ef58..6e9361628 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -535,6 +535,9 @@ au BufNewFile,BufRead mimeapps.list setf dosini
" (must be before *.cfg)
au BufNewFile,BufRead setup.cfg,pudb.cfg,.coveragerc setf dosini

+" LXQt's programs use dosini as their config
+au BufNewFile,BufRead */{lxqt,screengrab}/*.conf setf dosini
+
" Quake
au BufNewFile,BufRead *baseq[2-3]/*.cfg,*id1/*.cfg setf quake
au BufNewFile,BufRead *quake[1-3]/*.cfg setf quake
@@ -542,6 +545,11 @@ au BufNewFile,BufRead *quake[1-3]/*.cfg setf quake
" Quake C
au BufNewFile,BufRead *.qc setf c

+" LaTeX packages use LaTeX as their configuration, such as:
+" ~/.texlive/texmf-config/tex/latex/hyperref/hyperref.cfg
+" ~/.texlive/texmf-config/tex/latex/docstrip/docstrip.cfg
+au BufNewFile,BufRead */tex/latex/**.cfg setf tex
+
" Configure files
au BufNewFile,BufRead *.cfg
Reply all
Reply to author
Forward
0 new messages