ethanholz/nvim-lastplace

github github
editing-support
star 85
stars
alert-circle 2
open issues
users 1
subscribers
git-branch 2
forks
CREATED

2021-05-02

UPDATED

3 months ago


nvim-lastplace

A Lua rewrite of vim-lastplace

Heavily inspired by https://github.com/farmergreg/vim-lastplace

Installation

packer.nvim

use 'ethanholz/nvim-lastplace'

paq

paq 'ethanholz/nvim-lastplace'

Then add the following to your init.lua:

require'nvim-lastplace'.setup{}

You may set options using the following:

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:

lua require'nvim-lastplace'.setup{}

You can now set options using:

let g:lastplace_ignore_buftype = "quickfix,nofile,help"
let g:lastplace_ignore_filetype = "gitcommit,gitrebase,svn,hgcommit"
let g:lastplace_open_folds = 1

TO-DO

  • Port base framework
  • Add autocommand support
  • Added git message functionality
  • Fold support
  • Extensible option support
  • Added traditional config option