*tiny-autosave.txt*  Auto-save buffers on text changes and focus loss

Author: Stephen Waits <https://git.swaits.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:
