mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2026-08-07 06:37:35 +00:00
feat!: Replace callbacks with autocommand events (#25)
This commit is contained in:
@@ -14,12 +14,4 @@ function M.not_in(var, arr)
|
||||
end
|
||||
end
|
||||
|
||||
function M.do_callback(callback_name)
|
||||
local cnf = require("auto-save.config").opts
|
||||
|
||||
if type(cnf.callbacks[callback_name]) == "function" then
|
||||
cnf.callbacks[callback_name]()
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user