2019-07-03 20:30:16 -07:00
|
|
|
-- vim: ft=lua tw=80
|
|
|
|
|
2020-07-30 22:31:52 -07:00
|
|
|
stds.nvim = {
|
|
|
|
read_globals = { "jit" }
|
|
|
|
}
|
|
|
|
std = "lua51+nvim"
|
|
|
|
|
2019-07-03 20:30:16 -07:00
|
|
|
-- Ignore W211 (unused variable) with preload files.
|
|
|
|
files["**/preload.lua"] = {ignore = { "211" }}
|
Lua: vim.env, vim.{g,v,w,bo,wo} #11442
- Add vim variable meta accessors: vim.env, vim.{g,v,w,bo,wo}
- Redo gen_char_blob to generate multiple blobs instead of just one
so that multiple Lua modules can be inlined.
- Reorder vim.lua inclusion so that it can use previously defined C
functions and utility functions like vim.shared and vim.inspect things.
- Inline shared.lua into nvim, but also keep it available in runtime.
2019-11-24 03:28:48 -07:00
|
|
|
-- Allow vim module to modify itself, but only here.
|
|
|
|
files["src/nvim/lua/vim.lua"] = {ignore = { "122/vim" }}
|
2019-07-03 20:30:16 -07:00
|
|
|
|
|
|
|
-- 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
|
2019-07-16 13:02:50 -07:00
|
|
|
"212/_.*", -- unused argument, for vars with "_" prefix
|
2023-03-15 10:40:50 -07:00
|
|
|
"214", -- used variable with unused hint ("_" prefix)
|
2022-10-09 03:40:56 -07:00
|
|
|
"121", -- setting read-only global variable 'vim'
|
|
|
|
"122", -- setting read-only field of global variable 'vim'
|
2023-03-15 10:40:50 -07:00
|
|
|
"581", -- negation of a relational operator- operator can be flipped (not for tables)
|
2019-07-03 20:30:16 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
-- Global objects defined by the C code
|
|
|
|
read_globals = {
|
|
|
|
"vim",
|
|
|
|
}
|
2021-09-19 16:35:38 -07:00
|
|
|
|
2022-01-04 15:02:01 -07:00
|
|
|
globals = {
|
|
|
|
"vim.g",
|
2022-09-02 07:20:29 -07:00
|
|
|
"vim.b",
|
|
|
|
"vim.w",
|
|
|
|
"vim.o",
|
|
|
|
"vim.bo",
|
|
|
|
"vim.wo",
|
|
|
|
"vim.go",
|
|
|
|
"vim.env"
|
2022-01-04 15:02:01 -07:00
|
|
|
}
|
|
|
|
|
2021-09-19 16:35:38 -07:00
|
|
|
exclude_files = {
|
|
|
|
'test/functional/fixtures/lua/syntax_error.lua',
|
2023-04-20 04:19:38 -07:00
|
|
|
'runtime/lua/vim/treesitter/_meta.lua',
|
2023-07-26 01:50:54 -07:00
|
|
|
'runtime/lua/vim/_meta/vimfn.lua',
|
2023-04-20 04:19:38 -07:00
|
|
|
'runtime/lua/vim/re.lua',
|
2023-07-28 06:48:41 -07:00
|
|
|
'src/nvim/eval.lua',
|
2021-09-19 16:35:38 -07:00
|
|
|
}
|