ci: formatting

This commit is contained in:
Barrett Ruth 2026-03-04 17:32:55 -05:00
parent 13c0ea1e92
commit e5d9b4b7bd
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
9 changed files with 44 additions and 18 deletions

View file

@ -64,7 +64,9 @@ local function get_ft_from_filename(filename, repo_root)
if not ft and vim.fn.did_filetype() ~= 0 then
dbg('retrying filetype match for %s (clearing did_filetype)', filename)
local saved = rawget(vim.fn, 'did_filetype')
rawset(vim.fn, 'did_filetype', function() return 0 end)
rawset(vim.fn, 'did_filetype', function()
return 0
end)
ft = vim.filetype.match({ filename = filename })
rawset(vim.fn, 'did_filetype', saved)
end