feat: initial release

This commit is contained in:
swaits committed 2026-04-09 15:37:34 -06:00
commit 24a61f58f6
17 files changed
+283

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
local M = {}
function M.setup(opts)
opts = opts or {}
local events = opts.events or { "InsertLeave", "FocusLost" }
vim.api.nvim_create_autocmd(events, {
group = vim.api.nvim_create_augroup("tiny-autosave", { clear = true }),
callback = function()
if vim.bo.buftype == "" and vim.bo.modified then
vim.cmd("silent! wall")
end
end,
})
end
return M