diff options
| author | Matěj Cepl <mcepl@cepl.eu> | 2023-02-16 17:46:39 +0100 |
|---|---|---|
| committer | Felix Van der Jeugt <felix.vanderjeugt@posteo.net> | 2023-03-19 13:05:54 +0100 |
| commit | c3133cc5cb329ba0787c003b6f28cb11a08b25ee (patch) | |
| tree | 6b9ef465dda171bbf8c558c3f6d00b70907c9914 | |
| parent | 7e88dffd075d2e0bd18af33eb42b28094141198a (diff) | |
| download | vis-c3133cc5cb329ba0787c003b6f28cb11a08b25ee.tar.gz vis-c3133cc5cb329ba0787c003b6f28cb11a08b25ee.tar.xz | |
lua: Make luacheck happy
| -rw-r--r-- | lua/plugins/filetype.lua | 2 | ||||
| -rw-r--r-- | lua/visrc.lua | 2 |
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) |
