mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04: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:
parent
8ade8009ee
commit
60d3bb745d
@ -26,6 +26,10 @@ read_globals = {
|
||||
"vim",
|
||||
}
|
||||
|
||||
globals = {
|
||||
"vim.g",
|
||||
}
|
||||
|
||||
exclude_files = {
|
||||
'test/functional/fixtures/lua/syntax_error.lua',
|
||||
}
|
||||
|
@ -20,3 +20,7 @@ let g:did_load_ftdetect = 1
|
||||
|
||||
augroup END
|
||||
]]
|
||||
|
||||
if not vim.g.ft_ignore_pat then
|
||||
vim.g.ft_ignore_pat = "\\.\\(Z\\|gz\\|bz2\\|zip\\|tgz\\)$"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user