astro-nvim-v3 - ft: big update

This commit is contained in:
huyjaky
2024-08-17 16:02:08 +07:00
parent 01642018e6
commit 5b29aaf500
12 changed files with 45 additions and 28 deletions

View File

@@ -5,9 +5,9 @@ return {
opts = {
-- your config goes here
-- or just leave it empty :)
enabled = false, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it)
enabled = true, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it)
execution_message = {
enabled = false,
enabled = true,
message = function() -- message to print on save
return ("AutoSave: saved at " .. vim.fn.strftime "%H:%M:%S")
end,
@@ -16,7 +16,7 @@ return {
},
trigger_events = { -- See :h events
immediate_save = { "BufLeave", "FocusLost" }, -- vim events that trigger an immediate save
defer_save = { "InsertLeave", "TextChanged" }, -- vim events that trigger a deferred save (saves after `debounce_delay`)
defer_save = {"TextChanged" }, -- vim events that trigger a deferred save (saves after `debounce_delay`)
cancel_defered_save = { "InsertEnter" }, -- vim events that cancel a pending deferred save
},
-- function that takes the buffer handle and determines whether to save the current buffer or not
@@ -35,6 +35,6 @@ return {
write_all_buffers = false, -- write all buffers when the current one meets `condition`
noautocmd = false, -- do not execute autocmds when saving
lockmarks = false, -- lock marks when saving, see `:h lockmarks` for more details
debounce_delay = 500, -- delay after which a pending save is executed
debounce_delay = 10000, -- delay after which a pending save is executed
},
}