vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit c4c10d3dd69965b72fa13b42fbdc112e8cba1c53 parent 91799ca629b28c54b2111555c6c786d5c5748e43 Author: Matěj Cepl <mcepl@cepl.eu> Date: Thu, 16 Feb 2023 17:46:39 +0100 lua: Make luacheck happy Diffstat:
| M | lua/plugins/filetype.lua | | | 2 | +- |
| M | lua/visrc.lua | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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 @@ -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)