mirror of
https://github.com/neovim/neovim.git
synced 2025-10-25 20:07:09 +00:00
fix(filetype): set default ft_ignore_pat in filetype.lua (#16917)
This default value is also set in filetype.vim, but if filetype.vim is disabled the variable is never defined, which causes errors in some of the dist#ft detection functions.
This commit is contained in:
@@ -26,6 +26,10 @@ read_globals = {
|
|||||||
"vim",
|
"vim",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
globals = {
|
||||||
|
"vim.g",
|
||||||
|
}
|
||||||
|
|
||||||
exclude_files = {
|
exclude_files = {
|
||||||
'test/functional/fixtures/lua/syntax_error.lua',
|
'test/functional/fixtures/lua/syntax_error.lua',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,3 +20,7 @@ let g:did_load_ftdetect = 1
|
|||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
if not vim.g.ft_ignore_pat then
|
||||||
|
vim.g.ft_ignore_pat = "\\.\\(Z\\|gz\\|bz2\\|zip\\|tgz\\)$"
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user