mirror of
https://github.com/neovim/neovim.git
synced 2026-05-03 12:35:00 +00:00
vim-patch:9.1.0311: filetype: Some config files are not recognized (#28311)
Problem: Some config files are not recognized
Solution: Add some patterns for chktex, ripgreprc and ctags config
files.
See: https://www.nongnu.org/chktex/
See: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file
See: https://docs.ctags.io/en/latest/option-file.html#order-of-loading-option-files
closes: vim/vim#14506
a1dcd76ce7
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
@@ -283,6 +283,7 @@ local extension = {
|
||||
cbl = 'cobol',
|
||||
atg = 'coco',
|
||||
recipe = 'conaryrecipe',
|
||||
ctags = 'conf',
|
||||
hook = function(path, bufnr)
|
||||
return M._getline(bufnr, 1) == '[Trigger]' and 'confini' or nil
|
||||
end,
|
||||
@@ -1305,6 +1306,9 @@ local filename = {
|
||||
['auto.master'] = 'conf',
|
||||
['texdoc.cnf'] = 'conf',
|
||||
['.x11vncrc'] = 'conf',
|
||||
['.chktexrc'] = 'conf',
|
||||
['.ripgreprc'] = 'conf',
|
||||
ripgreprc = 'conf',
|
||||
['configure.in'] = 'config',
|
||||
['configure.ac'] = 'config',
|
||||
crontab = 'crontab',
|
||||
|
||||
Reference in New Issue
Block a user