vim-patch:9.1.0322: filetype: some mail tools not recognized
Problem: filetype: some mail tools not recognized
Solution: Detect '.mbsncrc' as conf, '.msmtprc' as msmtp
and '.notmuch-config' as ini filetype
(Shane-XB-Qian)
closes: vim/vim#14533
a7a9a476cf
Co-authored-by: shane.xb.qian <shane.qian@foxmail.com>
This commit is contained in:
parent
b4ddee1116
commit
6717cc5b41
|
@ -1311,6 +1311,7 @@ local filename = {
|
|||
['.chktexrc'] = 'conf',
|
||||
['.ripgreprc'] = 'conf',
|
||||
ripgreprc = 'conf',
|
||||
['.mbsyncrc'] = 'conf',
|
||||
['configure.in'] = 'config',
|
||||
['configure.ac'] = 'config',
|
||||
crontab = 'crontab',
|
||||
|
@ -1352,6 +1353,7 @@ local filename = {
|
|||
['.wakatime.cfg'] = 'dosini',
|
||||
['nfs.conf'] = 'dosini',
|
||||
['nfsmount.conf'] = 'dosini',
|
||||
['.notmuch-config'] = 'dosini',
|
||||
['pacman.conf'] = 'confini',
|
||||
['paru.conf'] = 'confini',
|
||||
['mpv.conf'] = 'confini',
|
||||
|
@ -1486,6 +1488,7 @@ local filename = {
|
|||
['mplayer.conf'] = 'mplayerconf',
|
||||
mrxvtrc = 'mrxvtrc',
|
||||
['.mrxvtrc'] = 'mrxvtrc',
|
||||
['.msmtprc'] = 'msmtp',
|
||||
['.mysql_history'] = 'mysql',
|
||||
['/etc/nanorc'] = 'nanorc',
|
||||
Neomuttrc = 'neomuttrc',
|
||||
|
|
|
@ -163,7 +163,7 @@ func s:GetFilenameChecks() abort
|
|||
\ 'cobol': ['file.cbl', 'file.cob', 'file.lib'],
|
||||
\ 'coco': ['file.atg'],
|
||||
\ 'conaryrecipe': ['file.recipe'],
|
||||
\ 'conf': ['auto.master', 'file.conf', 'texdoc.cnf', '.x11vncrc', '.chktexrc', '.ripgreprc', 'ripgreprc', 'file.ctags'],
|
||||
\ 'conf': ['auto.master', 'file.conf', 'texdoc.cnf', '.x11vncrc', '.chktexrc', '.ripgreprc', 'ripgreprc', 'file.ctags', '.mbsyncrc'],
|
||||
\ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'],
|
||||
\ 'confini': ['pacman.conf', 'paru.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'],
|
||||
\ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
|
||||
|
@ -220,7 +220,7 @@ func s:GetFilenameChecks() abort
|
|||
\ '.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc',
|
||||
\ '/home/user/.config/bpython/config', '/home/user/.config/mypy/config', '.wakatime.cfg', '.replyrc',
|
||||
\ 'psprint.conf', 'sofficerc', 'any/.config/lxqt/globalkeyshortcuts.conf', 'any/.config/screengrab/screengrab.conf',
|
||||
\ 'any/.local/share/flatpak/repo/config'],
|
||||
\ 'any/.local/share/flatpak/repo/config', '.notmuch-config'],
|
||||
\ 'dot': ['file.dot', 'file.gv'],
|
||||
\ 'dracula': ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'],
|
||||
\ 'dtd': ['file.dtd'],
|
||||
|
@ -477,6 +477,7 @@ func s:GetFilenameChecks() abort
|
|||
\ 'msidl': ['file.odl', 'file.mof'],
|
||||
\ 'msql': ['file.msql'],
|
||||
\ 'mojo': ['file.mojo', 'file.🔥'],
|
||||
\ 'msmtp': ['.msmtprc'],
|
||||
\ 'mupad': ['file.mu'],
|
||||
\ 'mush': ['file.mush'],
|
||||
\ 'mustache': ['file.mustache'],
|
||||
|
|
Loading…
Reference in New Issue