aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-02-16 17:46:39 +0100
committerFelix Van der Jeugt <felix.vanderjeugt@posteo.net>2023-03-19 13:05:54 +0100
commitc3133cc5cb329ba0787c003b6f28cb11a08b25ee (patch)
tree6b9ef465dda171bbf8c558c3f6d00b70907c9914 /lua
parent7e88dffd075d2e0bd18af33eb42b28094141198a (diff)
downloadvis-c3133cc5cb329ba0787c003b6f28cb11a08b25ee.tar.gz
vis-c3133cc5cb329ba0787c003b6f28cb11a08b25ee.tar.xz
lua: Make luacheck happy
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/filetype.lua2
-rw-r--r--lua/visrc.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index ede9fd4..4203604 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -594,7 +594,7 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win)
end
local function searcher(tbl, subject)
- for i, pattern in ipairs(tbl or {}) do
+ for _, pattern in ipairs(tbl or {}) do
if string.match(subject, pattern) then
return true
end
diff --git a/lua/visrc.lua b/lua/visrc.lua
index 9a06650..7f1acc6 100644
--- a/lua/visrc.lua
+++ b/lua/visrc.lua
@@ -5,7 +5,7 @@ vis.events.subscribe(vis.events.INIT, function()
-- Your global configuration options
end)
-vis.events.subscribe(vis.events.WIN_OPEN, function(win)
+vis.events.subscribe(vis.events.WIN_OPEN, function(win) -- luacheck: no unused args
-- Your per window configuration options e.g.
-- vis:command('set number')
end)