feat: initial release
This commit is contained in:
17 files changed
+251
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# 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:
|
||||
|
||||
```lua
|
||||
"https://github.com/swaits/tiny-lastplace.nvim",
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
All options are optional. Call `setup()` only if you want to customize:
|
||||
|
||||
```lua
|
||||
require("tiny-lastplace").setup({
|
||||
exclude = { "gitcommit" }, -- filetypes to skip
|
||||
})
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
Reference in new issue
Block a user