mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
patch 9.2.0201: filetype: Wireguard config files not recognized
Problem: filetype: Wireguard config files not recognized
Solution: Detect /etc/wireguard/*.conf files as dosini filetype
(Furkan Sahin).
closes: #19751
Signed-off-by: Furkan Sahin <furkan-dev@proton.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
1da42ee271
commit
cc8798e719
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||
" Last Change: 2026 Feb 18
|
||||
" Last Change: 2026 Mar 19
|
||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
|
||||
" If the filetype can be detected from extension or file name(the final path component),
|
||||
@@ -1571,6 +1571,9 @@ au BufNewFile,BufRead *vimrc* call s:StarSetf('vim')
|
||||
" Subversion commit file
|
||||
au BufNewFile,BufRead svn-commit*.tmp setf svn
|
||||
|
||||
" Wireguard config
|
||||
au BufNewFile,BufRead */etc/wireguard/*.conf setf dosini
|
||||
|
||||
" X resources file
|
||||
au BufNewFile,BufRead Xresources*,*/app-defaults/*,*/Xresources/* call s:StarSetf('xdefaults')
|
||||
|
||||
|
||||
@@ -256,6 +256,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
'psprint.conf', 'sofficerc', 'any/.config/lxqt/globalkeyshortcuts.conf', 'any/.config/screengrab/screengrab.conf',
|
||||
'any/.local/share/flatpak/repo/config',
|
||||
'.alsoftrc', 'alsoft.conf', 'alsoft.ini', 'alsoftrc.sample',
|
||||
'/etc/wireguard/wg0.conf',
|
||||
'.notmuch-config', '.notmuch-config.myprofile',
|
||||
'~/.config/notmuch/myprofile/config'] + WhenConfigHome('$XDG_CONFIG_HOME/notmuch/myprofile/config'),
|
||||
dot: ['file.dot', 'file.gv'],
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
201,
|
||||
/**/
|
||||
200,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user