mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04:00 
			
		
		
		
	patch 9.1.0744: filetype: notmuch configs are not recognised
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: #15744
Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
			
			
This commit is contained in:
		
				
					committed by
					
						 Christian Brabandt
						Christian Brabandt
					
				
			
			
				
	
			
			
			
						parent
						
							06fe70c183
						
					
				
				
					commit
					1a2870b57a
				
			| @@ -1631,7 +1631,11 @@ au BufNewFile,BufRead *.mm			call dist#ft#FTmm() | |||||||
| au BufNewFile,BufRead *.nqc			setf nqc | au BufNewFile,BufRead *.nqc			setf nqc | ||||||
|  |  | ||||||
| " notmuch | " notmuch | ||||||
| au BufNewFile,BufRead .notmuch-config		setf dosini | au BufNewFile,BufRead .notmuch-config{,.*}		setf dosini | ||||||
|  | au BufNewFile,BufRead ~/.config/notmuch/*/config	setf dosini | ||||||
|  | if exists('$XDG_CONFIG_HOME') | ||||||
|  |   au BufNewFile,BufRead $XDG_CONFIG_HOME/notmuch/*/config setf dosini | ||||||
|  | endif | ||||||
|  |  | ||||||
| " NSE - Nmap Script Engine - uses Lua syntax | " NSE - Nmap Script Engine - uses Lua syntax | ||||||
| au BufNewFile,BufRead *.nse			setf lua | au BufNewFile,BufRead *.nse			setf lua | ||||||
|   | |||||||
| @@ -223,7 +223,8 @@ def s:GetFilenameChecks(): dict<list<string>> | |||||||
|              '.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc', |              '.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc', | ||||||
|              '/home/user/.config/bpython/config', '/home/user/.config/mypy/config', '.wakatime.cfg', '.replyrc', |              '/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', |              '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'] + WhenConfigHome('$XDG_CONFIG_HOME/notmuch/myprofile/config'), | ||||||
|     dot: ['file.dot', 'file.gv'], |     dot: ['file.dot', 'file.gv'], | ||||||
|     dracula: ['file.drac', 'file.drc', 'file.lvs', 'file.lpe', 'drac.file'], |     dracula: ['file.drac', 'file.drc', 'file.lvs', 'file.lpe', 'drac.file'], | ||||||
|     dtd: ['file.dtd'], |     dtd: ['file.dtd'], | ||||||
|   | |||||||
| @@ -704,6 +704,8 @@ static char *(features[]) = | |||||||
|  |  | ||||||
| static int included_patches[] = | static int included_patches[] = | ||||||
| {   /* Add new patch number below this line */ | {   /* Add new patch number below this line */ | ||||||
|  | /**/ | ||||||
|  |     744, | ||||||
| /**/ | /**/ | ||||||
|     743, |     743, | ||||||
| /**/ | /**/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user