diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-13 09:59:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 09:59:53 +0800 |
commit | 355c149ba02a0d18d8dab9ede553a56507153c84 (patch) | |
tree | b93d58c9a8da45e3c1824b160436d09aef551507 /runtime | |
parent | 66220d164a40791a5131d4660e6ffbee431070d5 (diff) | |
download | rneovim-355c149ba02a0d18d8dab9ede553a56507153c84.tar.gz rneovim-355c149ba02a0d18d8dab9ede553a56507153c84.tar.bz2 rneovim-355c149ba02a0d18d8dab9ede553a56507153c84.zip |
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
https://github.com/vim/vim/commit/a1dcd76ce791b5b8bd093765a99b71aa163300a5
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 215be7fdc2..5f7bcce713 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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', |