mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.1.0744: filetype: notmuch configs are not recognised (#30535)
Problem: filetype: notmuch configs are not recognised
Solution: Detect more notmuch profile configuration files
as dosini filetype (Julio B)
Reference:
https://notmuchmail.org/doc/latest/man1/notmuch-config.html#configuration
closes: vim/vim#15744
1a2870b57a
Co-authored-by: Julio B <julio.bacel@gmail.com>
This commit is contained in:
parent
b63cd8cbae
commit
60a7578058
@ -2109,6 +2109,8 @@ local pattern = {
|
||||
['/bpython/config$'] = 'dosini',
|
||||
['/flatpak/repo/config$'] = 'dosini',
|
||||
['/mypy/config$'] = 'dosini',
|
||||
['^${HOME}/%.config/notmuch/.*/config$'] = 'dosini',
|
||||
['^${XDG_CONFIG_HOME}/notmuch/.*/config$'] = 'dosini',
|
||||
['^${XDG_CONFIG_HOME}/git/config$'] = 'gitconfig',
|
||||
['%.git/config%.worktree$'] = 'gitconfig',
|
||||
['%.git/config$'] = 'gitconfig',
|
||||
@ -2259,6 +2261,7 @@ local pattern = {
|
||||
['^%.'] = {
|
||||
['^%.cshrc'] = detect.csh,
|
||||
['^%.login'] = detect.csh,
|
||||
['^%.notmuch%-config%.'] = 'dosini',
|
||||
['^%.gitsendemail%.msg%.......$'] = 'gitsendemail',
|
||||
['^%.kshrc'] = detect.ksh,
|
||||
['^%.article%.%d+$'] = 'mail',
|
||||
|
@ -224,7 +224,8 @@ 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', '.notmuch-config'],
|
||||
\ 'any/.local/share/flatpak/repo/config', '.notmuch-config', '.notmuch-config.myprofile',
|
||||
\ '~/.config/notmuch/myprofile/config'] + s:WhenConfigHome('$XDG_CONFIG_HOME/notmuch/myprofile/config'),
|
||||
\ 'dot': ['file.dot', 'file.gv'],
|
||||
\ 'dracula': ['file.drac', 'file.drc', 'file.lvs', 'file.lpe', 'drac.file'],
|
||||
\ 'dtd': ['file.dtd'],
|
||||
|
Loading…
Reference in New Issue
Block a user