auto-save.nvim icon indicating copy to clipboard operation
auto-save.nvim copied to clipboard

fix callbacks never call.

Open fovj opened this issue 3 years ago • 2 comments

The do_callback in data.lua will always use the default options from config.lua

https://github.com/Pocco81/auto-save.nvim/blob/979b6c82f60cfa80f4cf437d77446d0ded0addf0/lua/auto-save/utils/data.lua#L3

https://github.com/Pocco81/auto-save.nvim/blob/979b6c82f60cfa80f4cf437d77446d0ded0addf0/lua/auto-save/utils/data.lua#L19-L23

I simply rewrite the callback function in init.lua.

fovj avatar Dec 08 '22 20:12 fovj

Would rather have the other PR: https://github.com/Pocco81/auto-save.nvim/pull/67 since you did a lot of unecessary code changes?

primeapple avatar Feb 09 '23 20:02 primeapple