swaits 016ca89f87
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s
chore: repoint remaining links and host-specific tooling at git.swaits.com
Covers files missed by the first pass (.svelte/.astro components, bare org and
profile links, plugin doc headers), plus content that needed rewriting rather
than a URL swap: the chezmoi bootstrap script now provisions SSH for
git.swaits.com (User git, port 2222) and initialises from Gitea.

Link labels were updated to match their new targets.
2026-08-31 18:35:25 -06:00
2026-04-09 15:37:34 -06:00
2026-04-12 20:12:03 -06:00
2026-04-09 15:37:34 -06:00
2026-04-09 15:37:34 -06:00
2026-04-12 20:12:03 -06:00
2026-04-09 15:37:34 -06:00
2026-04-09 15:37:34 -06:00
2026-04-09 15:37:34 -06:00
2026-04-09 15:37:34 -06:00
2026-04-09 15:37:34 -06:00

tiny-autosave.nvim

A tiny auto-save plugin for Neovim 0.12+. Saves modified buffers on InsertLeave and FocusLost.

Zero config. ~15 lines of Lua.

Features

  • Auto-saves on leaving insert mode, normal mode changes (undo, paste, etc.), and losing focus
  • Only saves normal file buffers (skips special buffers)
  • Configurable trigger events
  • Works out of the box — no setup call required

Requirements

  • Neovim >= 0.12

Installation

Add to your vim.pack.add() call:

"https://git.swaits.com/swaits/tiny-autosave.nvim",

Done. The plugin auto-loads with sensible defaults.

Configuration

All options are optional. Call setup() only if you want to customize:

require("tiny-autosave").setup({
  events = { "InsertLeave", "TextChanged", "FocusLost" }, -- events that trigger save
})

How it works

On the configured events, the plugin checks if the current buffer is a normal file buffer (buftype == "") and has unsaved changes. If so, it runs silent! wall to save all modified buffers.

License

MIT

S
Description
An ultra-minimal autosave plugin for Neovim
Readme MIT
44 KiB
0 Stars 1 Watchers 0 Forks
Languages
Lua 89.9%
Shell 10.1%