mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:8.2.5054: no good filetype for conf files similar to dosini (#18851)
Problem: No good filetype for conf files similar to dosini.
Solution: Add the confini filetype. (closes vim/vim#10510)
635f48010d
This commit is contained in:
@@ -1303,8 +1303,8 @@ au BufNewFile,BufRead *.org,*.org_archive setf org
|
||||
" Packet filter conf
|
||||
au BufNewFile,BufRead pf.conf setf pf
|
||||
|
||||
" Pacman config
|
||||
au BufNewFile,BufRead */etc/pacman.conf setf conf
|
||||
" ini style config files, using # comments
|
||||
au BufNewFile,BufRead */etc/pacman.conf,mpv.conf setf confini
|
||||
|
||||
" Pacman hooks
|
||||
au BufNewFile,BufRead *.hook
|
||||
|
@@ -1230,9 +1230,10 @@ local filename = {
|
||||
Dockerfile = 'dockerfile',
|
||||
npmrc = 'dosini',
|
||||
['/etc/yum.conf'] = 'dosini',
|
||||
['/etc/pacman.conf'] = 'conf',
|
||||
['.npmrc'] = 'dosini',
|
||||
['.editorconfig'] = 'dosini',
|
||||
['/etc/pacman.conf'] = 'confini',
|
||||
['mpv.conf'] = 'confini',
|
||||
dune = 'dune',
|
||||
jbuild = 'dune',
|
||||
['dune-workspace'] = 'dune',
|
||||
@@ -1558,7 +1559,7 @@ local pattern = {
|
||||
['.*/etc/DIR_COLORS'] = 'dircolors',
|
||||
['.*/etc/dnsmasq%.conf'] = 'dnsmasq',
|
||||
['php%.ini%-.*'] = 'dosini',
|
||||
['.*/etc/pacman%.conf'] = 'conf',
|
||||
['.*/etc/pacman%.conf'] = 'confini',
|
||||
['.*/etc/yum%.conf'] = 'dosini',
|
||||
['.*lvs'] = 'dracula',
|
||||
['.*lpe'] = 'dracula',
|
||||
|
@@ -114,8 +114,9 @@ let s:filename_checks = {
|
||||
\ 'cobol': ['file.cbl', 'file.cob', 'file.lib'],
|
||||
\ 'coco': ['file.atg'],
|
||||
\ 'conaryrecipe': ['file.recipe'],
|
||||
\ 'conf': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'auto.master'],
|
||||
\ 'conf': ['auto.master'],
|
||||
\ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file'],
|
||||
\ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf'],
|
||||
\ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
|
||||
\ 'cook': ['file.cook'],
|
||||
\ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'],
|
||||
|
Reference in New Issue
Block a user