Skip to content

Commit 21674d7

Browse files
committed
ci: fix luacheck config
vim must be a writable global (plugin sets vim.g, vim.bo, lsp handlers); ignore unused self in method definitions.
1 parent fddfeb8 commit 21674d7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.luacheckrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
std = "luajit"
22
cache = true
33
codes = true
4+
self = false
45

5-
read_globals = {
6+
-- vim is writable: the plugin sets vim.g.*, vim.bo.* and lsp handlers
7+
globals = {
68
"vim",
79
}
810

0 commit comments

Comments
 (0)