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.
{ "glacials/last-look.nvim" }use { "glacials/last-look.nvim" }Plug 'glacials/last-look.nvim'call dein#add('glacials/last-look.nvim')require "paq" {
"glacials/last-look.nvim";
}call minpac#add('glacials/last-look.nvim'):LastLook— manually run the guard and then quit
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
last-look.nvim is licensed under MIT. Please see LICENSE for details.
