mirror of
https://github.com/neovim/neovim.git
synced 2026-03-30 20:32:08 +00:00
vim-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: vim/vim#19751
cc8798e719
Co-authored-by: Furkan Sahin <furkan-dev@proton.me>
This commit is contained in:
@@ -2060,6 +2060,7 @@ local pattern = {
|
||||
['/etc/DIR_COLORS$'] = 'dircolors',
|
||||
['/etc/dnsmasq%.conf$'] = 'dnsmasq',
|
||||
['/etc/dnsmasq%.d/'] = starsetf('dnsmasq'),
|
||||
['/etc/wireguard/.*%.conf$'] = 'dosini',
|
||||
['/etc/yum%.conf$'] = 'dosini',
|
||||
['/etc/yum%.repos%.d/'] = starsetf('dosini'),
|
||||
['/etc/gitconfig%.d/'] = starsetf('gitconfig'),
|
||||
|
||||
@@ -256,6 +256,7 @@ func s:GetFilenameChecks() abort
|
||||
\ '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'] + s:WhenConfigHome('$XDG_CONFIG_HOME/notmuch/myprofile/config'),
|
||||
\ 'dot': ['file.dot', 'file.gv'],
|
||||
|
||||
Reference in New Issue
Block a user