aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.luacheckrc4
-rw-r--r--runtime/filetype.lua4
2 files changed, 8 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc
index 487f5ab552..9bbd323e84 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 3177705b65..855baf7dfa 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