• This repository has been archived on 27/Jul/2023
  • Stars
    star
    309
  • Rank 135,306 (Top 3 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Lua rewrite of vim-lastplace

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-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