style: autoformat all the things

Namely: applied stylua to the whole repo and ran marksman on README.md.
This commit is contained in:
Oula Kuuva
2023-03-21 08:57:03 +02:00
committed by okuuva
parent 14bc188b5e
commit 343bbfa98a
7 changed files with 291 additions and 291 deletions
+12 -12
View File
@@ -1,25 +1,25 @@
local M = {}
function M.set_of(list)
local set = {}
for i = 1, #list do
set[list[i]] = true
end
return set
local set = {}
for i = 1, #list do
set[list[i]] = true
end
return set
end
function M.not_in(var, arr)
if M.set_of(arr)[var] == nil then
return true
end
if M.set_of(arr)[var] == nil then
return true
end
end
function M.do_callback(callback_name)
local cnf = require("auto-save.config").opts
local cnf = require("auto-save.config").opts
if type(cnf.callbacks[callback_name]) == "function" then
cnf.callbacks[callback_name]()
end
if type(cnf.callbacks[callback_name]) == "function" then
cnf.callbacks[callback_name]()
end
end
return M