diff options
author | Acaibrid <95097635+A-caibird@users.noreply.github.com> | 2025-03-19 07:34:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-18 23:34:56 +0000 |
commit | aafbd442b2f8ed3c03dae418fabfe3df28608e22 (patch) | |
tree | 7b4105d49fc2851e8e2e3b1fc26c965e01fb916a /runtime/lua/vim | |
parent | 430d12a4fdc99a5f593d459994675ac17fc7c89c (diff) | |
download | rneovim-aafbd442b2f8ed3c03dae418fabfe3df28608e22.tar.gz rneovim-aafbd442b2f8ed3c03dae418fabfe3df28608e22.tar.bz2 rneovim-aafbd442b2f8ed3c03dae418fabfe3df28608e22.zip |
vim-patch:9.1.1220: filetype: uv.lock file not recognized (#32955)
Problem: filetype: uv.lock file not recognized
Solution: detect uv.lock file as toml filetype
(Acaibird)
closes: vim/vim#16924
https://github.com/vim/vim/commit/18a6853a7627de231f0128237665112a0c8aaaf0
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index a642a2a224..cd8dabe2ca 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1865,11 +1865,12 @@ local filename = { tidyrc = 'tidy', ['.tidyrc'] = 'tidy', ['.tmux.conf'] = 'tmux', + ['Cargo.lock'] = 'toml', ['/.cargo/config'] = 'toml', + ['/.cargo/credentials'] = 'toml', Pipfile = 'toml', ['Gopkg.lock'] = 'toml', - ['/.cargo/credentials'] = 'toml', - ['Cargo.lock'] = 'toml', + ['uv.lock'] = 'toml', ['.black'] = 'toml', black = detect_line1('tool%.black', 'toml', nil), ['trustees.conf'] = 'trustees', |