fix(filetype): fix typo in starsetf function (#18856)

This commit is contained in:
Gregory Anders 2022-06-03 21:52:59 -06:00 committed by GitHub
parent c6d747e6a5
commit 86cc33a464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,11 @@ local M = {}
local function starsetf(ft)
return {
function(path)
if not vim.g.fg_ignore_pat then
if not vim.g.ft_ignore_pat then
return ft
end
local re = vim.regex(vim.g.fg_ignore_pat)
local re = vim.regex(vim.g.ft_ignore_pat)
if re:match_str(path) then
return ft
end