diff --git a/.luacheckrc b/.luacheckrc index 487f5ab55..9bbd323e8 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -26,6 +26,10 @@ read_globals = { "vim", } +globals = { + "vim.g", +} + exclude_files = { 'test/functional/fixtures/lua/syntax_error.lua', } diff --git a/runtime/filetype.lua b/runtime/filetype.lua index 3177705b6..855baf7df 100644 --- a/runtime/filetype.lua +++ b/runtime/filetype.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