mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(filetype): fix typo in starsetf function (#18856)
This commit is contained in:
parent
c6d747e6a5
commit
86cc33a464
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user