mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
fix(filetype): fix typo in starsetf function (#18856)
This commit is contained in:
@@ -6,11 +6,11 @@ local M = {}
|
|||||||
local function starsetf(ft)
|
local function starsetf(ft)
|
||||||
return {
|
return {
|
||||||
function(path)
|
function(path)
|
||||||
if not vim.g.fg_ignore_pat then
|
if not vim.g.ft_ignore_pat then
|
||||||
return ft
|
return ft
|
||||||
end
|
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
|
if re:match_str(path) then
|
||||||
return ft
|
return ft
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user