From 80ad0e69ccc0239b0598a76b9aece13e7d696e34 Mon Sep 17 00:00:00 2001 From: Johan Date: Fri, 31 Dec 2021 13:50:23 +0100 Subject: [PATCH] Add metadata and fix typo --- README.md | 2 +- lua/remember.lua | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 49aa798..51381d5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # remember.nvim -This is a Neovim version of the Vim plugin [vim-lastplace](https://github.com/farmergreg/vim-lastplace]). It uses the same logic as vim-lastplace but also as much as possible the Neovim Lua API. +This is a Neovim version of the Vim plugin [vim-lastplace](https://github.com/farmergreg/vim-lastplace). It uses the same logic as vim-lastplace but also as much as possible the Neovim Lua API. When opening a file the plugin will set the cursor position to the edit position instead of top of the file. It ignores commit messages and certain buffer types. diff --git a/lua/remember.lua b/lua/remember.lua index a102301..cad2522 100644 --- a/lua/remember.lua +++ b/lua/remember.lua @@ -1,3 +1,13 @@ +-- +-- Author: johan@pwd.re +-- Version: 1.0.0 +-- +-- Based on https://github.com/farmergreg/vim-lastplace/ +-- +-- This work is licensed under the terms of the MIT license. +-- For a copy, see . +-- + local g = vim.g local bo = vim.bo local fn = vim.fn -- 2.34.4