Files
tiny-autosave.nvim/doc/tiny-autosave.txt
T
swaits e95071442b
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s
chore: repoint remaining links at git.swaits.com
Rewrites lingering github.com / *.sr.ht references to this Gitea instance,
translating GitHub and Sourcehut URL shapes to Gitea's (/blob/<ref>/ and
sr.ht /tree/<ref>/item/ -> /src/branch/<ref>/, /tree/<tag> -> /src/tag/<tag>,
/actions/workflows/X -> /actions?workflow=X, /edit/ -> /_edit/).

Left pointing at the old hosts on purpose: pull-request links (PRs were not
migrated), forks that were never migrated, and GitHub-only surfaces Gitea
lacks. OpenPGP identity proofs are untouched by design.
2026-08-31 18:32:25 -06:00

63 lines
2.4 KiB
Plaintext

*tiny-autosave.txt* Auto-save buffers on text changes and focus loss
Author: Stephen Waits <https://github.com/swaits>
License: MIT
==============================================================================
CONTENTS *tiny-autosave-contents*
1. Introduction ............................ |tiny-autosave-introduction|
2. Requirements ............................ |tiny-autosave-requirements|
3. Installation ............................ |tiny-autosave-installation|
4. Configuration ........................... |tiny-autosave-configuration|
==============================================================================
1. INTRODUCTION *tiny-autosave-introduction*
tiny-autosave.nvim automatically saves modified buffers when leaving insert
mode, after normal mode changes (undo, paste, etc.), and when Neovim loses
focus. Works out of the box with zero configuration.
==============================================================================
2. REQUIREMENTS *tiny-autosave-requirements*
- Neovim >= 0.12
==============================================================================
3. INSTALLATION *tiny-autosave-installation*
Add to your |vim.pack.add()| call: >lua
"https://git.swaits.com/swaits/tiny-autosave.nvim",
<
That's it. The plugin auto-loads with defaults. To customize, call setup: >lua
require("tiny-autosave").setup({
events = { "InsertLeave", "TextChanged", "FocusLost" },
})
<
==============================================================================
4. CONFIGURATION *tiny-autosave-configuration*
*tiny-autosave.setup()*
setup({opts})
Optional. The plugin works with defaults if you never call this.
Calling setup reconfigures the plugin with the given options.
All options shown with defaults: >lua
require("tiny-autosave").setup({
events = { "InsertLeave", "TextChanged", "FocusLost" },
})
<
Parameters: ~
{opts} (table|nil) Configuration table
Fields: ~
{events} (table) List of events that trigger auto-save.
Default: { "InsertLeave", "TextChanged", "FocusLost" }
==============================================================================
vim:tw=78:ts=8:ft=help:norl: