Forever undo in Neovim
The goal of nvim-fundo is to make Neovim's undo file become stable and useful.
WIP. If you like this plugin, star it to let me speed up to end WIP state.
Install with Packer.nvim:
use {
'kevinhwang91/nvim-fundo', requires = 'kevinhwang91/promise-async',
run = function() require('fundo').install() end
}
use {
'kevinhwang91/nvim-fundo', requires = 'kevinhwang91/promise-async',
run = function() require('fundo').install() end
}
vim.o.undofile = true
require('fundo').setup()
Use undo file as usual.
Fundo will keep the latest files as archives, in other words, it takes additional space in your
disk. If the BufReadPost
event is fired, it will validate the undo file and restore it if
necessary.
{
archives_dir = {
description = [[The directory to store the archives]],
default = vim.fn.stdpath('cache') .. path.separator .. 'fundo'
},
limit_archives_size = {
description = [[Limit the archives directory size, unit is MB(megabyte), elder files will be
removed based on their modified time]],
default = 512
}
}
:h fundo
may help you to get the all default configuration.
make test
The project is licensed under a BSD-3-clause license. See LICENSE file for details.