Files
tiny-lastplace.nvim/README.md
T
swaits e3f21c3293
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:29 -06:00

687 B

tiny-lastplace.nvim

A tiny plugin for Neovim 0.12+ that restores the cursor to its last position when reopening a file.

Zero config. ~20 lines of Lua.

Features

  • Restores cursor to last edit position on file open
  • Skips excluded filetypes (e.g. gitcommit)
  • 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-lastplace.nvim",

Configuration

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

require("tiny-lastplace").setup({
  exclude = { "gitcommit" }, -- filetypes to skip
})

License

MIT