mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
46 lines
933 B
Lua
46 lines
933 B
Lua
-- vim: ft=lua tw=80
|
|
|
|
stds.nvim = {
|
|
read_globals = { "jit" }
|
|
}
|
|
std = "lua51+nvim"
|
|
|
|
-- Ignore W211 (unused variable) with preload files.
|
|
files["**/preload.lua"] = {ignore = { "211" }}
|
|
-- Allow vim module to modify itself, but only here.
|
|
files["src/nvim/lua/vim.lua"] = {ignore = { "122/vim" }}
|
|
|
|
-- Don't report unused self arguments of methods.
|
|
self = false
|
|
|
|
-- Rerun tests only if their modification time changed.
|
|
cache = true
|
|
|
|
ignore = {
|
|
"631", -- max_line_length
|
|
"212/_.*", -- unused argument, for vars with "_" prefix
|
|
"121", -- setting read-only global variable 'vim'
|
|
"122", -- setting read-only field of global variable 'vim'
|
|
}
|
|
|
|
-- Global objects defined by the C code
|
|
read_globals = {
|
|
"vim",
|
|
}
|
|
|
|
globals = {
|
|
"vim.g",
|
|
"vim.b",
|
|
"vim.w",
|
|
"vim.o",
|
|
"vim.bo",
|
|
"vim.wo",
|
|
"vim.go",
|
|
"vim.env"
|
|
}
|
|
|
|
exclude_files = {
|
|
'test/functional/fixtures/lua/syntax_error.lua',
|
|
'runtime/lua/vim/treesitter/_meta.lua'
|
|
}
|