Skip to content

Commit

Permalink
Ignore luacheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Jun 12, 2024
1 parent 828d86f commit af4a83c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/scrollview/signs/latestchange.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ function M.init(enable)
local bufnr = api.nvim_win_get_buf(winid)
if not visited[bufnr] then
local bufvars = vim.b[bufnr]
-- luacheck: ignore 122 (setting read-only field b.?.? of global vim)
bufvars[name] = {}
local latestchange = api.nvim_win_call(winid, function()
return fn.line("'.")
end)
if latestchange > 0 then
-- luacheck: ignore 122 (setting read-only field b.?.? of global vim)
bufvars[name] = {latestchange}
end
visited[bufnr] = true
Expand Down

0 comments on commit af4a83c

Please sign in to comment.