notex.nvim/.luacheckrc

40 lines
684 B
Lua

-- .luacheckrc
std = "luajit"
max_line_length = 120
-- Ignore unused self arguments in methods
ignore = {"211/_.*", "212/self.*", "213/_.*"}
-- Global variables for Neovim API
globals = {
"vim",
"nvim_buf_set_lines",
"nvim_create_buf",
"nvim_open_win",
"nvim_win_set_buf",
"nvim_buf_get_name",
"nvim_get_current_buf",
"nvim_win_get_cursor",
"nvim_win_close",
"nvim_command",
"nvim_echo",
"vim.schedule",
"vim.fn",
"vim.api",
"vim.loop",
"vim.tbl_deep_extend",
"vim.tbl_filter",
"vim.split",
"vim.trim",
"vim.validate"
}
-- Custom globals for our plugin
read_globals = {
"notex"
}
-- Files to ignore
exclude_files = {
"tests/**/*.lua"
}