From aafbd442b2f8ed3c03dae418fabfe3df28608e22 Mon Sep 17 00:00:00 2001 From: Acaibrid <95097635+A-caibird@users.noreply.github.com> Date: Wed, 19 Mar 2025 07:34:56 +0800 Subject: 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 --- runtime/lua/vim/filetype.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim') 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', -- cgit