You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but I cannot test - dont use formatters and save on insertLeave
my config is
{
"okuuva/auto-save.nvim",
event = { "User AstroFile", "InsertEnter" },
opts = {
trigger_events = { -- See :h events
immediate_save = { 'BufLeave', 'TabLeave', 'FocusLost', 'VimLeavePre' }, -- vim events that trigger an immediate save
-- defer_save = { "InsertLeave", "TextChanged" }, -- vim events that trigger a deferred save (saves after `debounce_delay`)
defer_save = { }, -- vim events that trigger a deferred save (saves after `debounce_delay`)
cancel_defered_save = { "InsertEnter" }, -- vim events that cancel a pending deferred save
},
},
},
The text was updated successfully, but these errors were encountered:
I just had a quick test, and I don't think the current callback stuff even works. I have lua enabled with auto formatting, I created a bunch of extra spaces and let it autosave and it will remove the extra spaces. If I manually disable auto formatting for my buffer and then do the same thing, it will keep the spaces.
Are we happy with me just updating the repo and removing the callback stuff? or should I look into why this might be happening?
Is your feature related to a problem?
not maintained
astrocommunity/lua/astrocommunity/editing-support/auto-save-nvim/init.lua
Line 2 in c87c236
Describe the new feature
https://github.com/okuuva/auto-save.nvim is more maintained
Additional context
use https://github.com/okuuva/auto-save.nvim?tab=readme-ov-file#%EF%B8%8F--events--callbacks
instead of before_saving, after_saving?
but I cannot test - dont use formatters and
save on insertLeave
my config is
The text was updated successfully, but these errors were encountered: