aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-04-13 18:33:44 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-04-14 13:21:10 +0200
commit420f130223314805eac356d03eab98ff94961686 (patch)
treee65df74f5fc1926db464d440fadfd8e285dc9384 /runtime/lua
parent4c31a1b807f1c38203661e35059305d63fd0e9f7 (diff)
downloadrneovim-420f130223314805eac356d03eab98ff94961686.tar.gz
rneovim-420f130223314805eac356d03eab98ff94961686.tar.bz2
rneovim-420f130223314805eac356d03eab98ff94961686.zip
vim-patch:9.1.0315: filetype: a few more dosini files are not recognized
Problem: filetype: a few more dosini files are not recognized Solution: Detect wakatime, reply config files, flatpak, nfs config files and a few more python tools as dosini (or toml) (Wu, Zhenyu) Refer: - https://packaging.python.org/en/latest/specifications/pypirc/ - https://jorisroovers.com/gitlint/latest/configuration/ - https://pylint.pycqa.org/en/latest/user_guide/usage/run.html#command-line-options - https://docs.bpython-interpreter.org/en/latest/configuration.html - https://mypy.readthedocs.io/en/stable/config_file.html#the-mypy-configuration-file - https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file - https://github.com/wakatime/wakatime-cli?tab=readme-ov-file#usage - https://metacpan.org/dist/Reply/view/bin/reply#-cfg-~/.replyrc close: vim/vim#14512 https://github.com/vim/vim/commit/0881329d129866fa49444e7fb6e622e54285a8ff Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/filetype.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 5f7bcce713..583839e28d 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1338,9 +1338,18 @@ local filename = {
['setup.cfg'] = 'dosini',
['pudb.cfg'] = 'dosini',
['.coveragerc'] = 'dosini',
+ ['.pypirc'] = 'dosini',
+ ['.pylintrc'] = 'dosini',
+ ['pylintrc'] = 'dosini',
+ ['.replyrc'] = 'dosini',
+ ['.gitlint'] = 'dosini',
+ ['.oelint.cfg'] = 'dosini',
['psprint.conf'] = 'dosini',
sofficerc = 'dosini',
['mimeapps.list'] = 'dosini',
+ ['.wakatime.cfg'] = 'dosini',
+ ['nfs.conf'] = 'dosini',
+ ['nfsmount.conf'] = 'dosini',
['/etc/pacman.conf'] = 'confini',
['mpv.conf'] = 'confini',
dune = 'dune',
@@ -1608,6 +1617,8 @@ local filename = {
['Gopkg.lock'] = 'toml',
['/.cargo/credentials'] = 'toml',
['Cargo.lock'] = 'toml',
+ ['.black'] = 'toml',
+ black = detect_line1('tool%.black', 'toml', nil),
['trustees.conf'] = 'trustees',
['.ts_node_repl_history'] = 'typescript',
['/etc/udev/udev.conf'] = 'udevconf',
@@ -1758,6 +1769,9 @@ local pattern = {
['.*/etc/yum%.conf'] = 'dosini',
['.*/lxqt/.*%.conf'] = 'dosini',
['.*/screengrab/.*%.conf'] = 'dosini',
+ ['.*/bpython/config'] = 'dosini',
+ ['.*/mypy/config'] = 'dosini',
+ ['.*/flatpak/repo/config'] = 'dosini',
['.*lvs'] = 'dracula',
['.*lpe'] = 'dracula',
['.*/dtrace/.*%.d'] = 'dtrace',