Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethanholz/nvim-lastplace
A Lua rewrite of vim-lastplace
https://github.com/ethanholz/nvim-lastplace
lua neovim plugin vim
Last synced: 4 months ago
JSON representation
A Lua rewrite of vim-lastplace
- Host: GitHub
- URL: https://github.com/ethanholz/nvim-lastplace
- Owner: ethanholz
- License: mit
- Archived: true
- Created: 2021-05-02T22:04:20.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-27T15:55:30.000Z (over 1 year ago)
- Last Synced: 2024-07-31T20:51:37.217Z (6 months ago)
- Topics: lua, neovim, plugin, vim
- Language: Lua
- Homepage:
- Size: 32.2 KB
- Stars: 305
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-neovim - ethanholz/nvim-lastplace - Reopen files at your last edit position. (Editing Support / Scrollbar)
README
# NO LONGER MAINTAINED
This is plugin is no longer maintained and works well enough for my use case.Feel free to fork and update as needed.
## nvim-lastplace
A Lua rewrite of vim-lastplaceHeavily inspired by https://github.com/farmergreg/vim-lastplace
## Installation
[packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
use 'ethanholz/nvim-lastplace'```
[paq](https://github.com/savq/paq-nvim)
```lua
paq 'ethanholz/nvim-lastplace'
```Then add the following to your init.lua:
```lua
require'nvim-lastplace'.setup{}
```
You may set options using the following:
```lua
require'nvim-lastplace'.setup {
lastplace_ignore_buftype = {"quickfix", "nofile", "help"},
lastplace_ignore_filetype = {"gitcommit", "gitrebase", "svn", "hgcommit"},
lastplace_open_folds = true
}
```For those of you still using Vimscript to configure your init.vim:
```vim
lua require'nvim-lastplace'.setup{}
```
You can now set options using:
```vim
let g:lastplace_ignore_buftype = "quickfix,nofile,help"
let g:lastplace_ignore_filetype = "gitcommit,gitrebase,svn,hgcommit"
let g:lastplace_open_folds = 1
```