Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/last-look.nvim. one last diff before quitting an unsaved buffer
Something went wrong. Try again.
Files
- Lua 100%
README.md
last-look.nvim #
A Neovim plugin that shows a diff any time :q is called with unsaved changes.

No extra steps;
this just replaces
E37: No write since last change
with something helpful and actionable.
From there you can choose to :q! or :wq as normal.
You can also directly edit the diff buffer and save from there.
Install #
lazy.nvim #
{ "glacials/last-look.nvim" }
packer.nvim #
use { "glacials/last-look.nvim" }
vim-plug #
Plug 'glacials/last-look.nvim'
dein.vim #
call dein#add('glacials/last-look.nvim')
paq-nvim #
require "paq" {
"glacials/last-look.nvim";
}
minpac #
call minpac#add('glacials/last-look.nvim')
Commands #
:LastLook— manually run the guard and then quit
Inherited Commands #
last-look.nvim does not add any actions worthy of keybinds,
but inherits the same mappings of vimdiff.
For your convenience:
]c: Jump to the next change[c: Jump to the previous changezo/zc: Open / close a foldzr/zm: Open / close all foldsdo: Bring a change into this window from the other windowdc: Take a change from this window to the other window
License #
last-look.nvim is licensed under MIT. Please see LICENSE for details.