A lightweight Neovim plugin to quickly view and navigate to modified buffers in a clean floating window.
- 🎨 Clean floating window with file icons (using nvim-web-devicons)
- ⚡ Fast navigation - press
Enterto jump to a buffer - 🎯 Shows only modified buffers (unsaved changes)
- 🎨 Syntax-highlighted file icons matching file types
- ⌨️ Simple keybindings (
q,Escto close,Enterto select)
- Neovim >= 0.8.0
- nvim-web-devicons (optional, for file icons)
Using lazy.nvim
{
'benbpyle/modified-buffers.nvim',
keys = {
{ '<leader>bl', '<cmd>ModifiedBuffers<cr>', desc = 'Modified [B]uffer [L]ist' },
},
opts = {},
}Using packer.nvim
use {
'benbpyle/modified-buffers.nvim',
config = function()
require('modified-buffers').setup()
end
}Using vim-plug
Plug 'benbpyle/modified-buffers.nvim':ModifiedBuffersEnter- Jump to the selected bufferqorEsc- Close the windowj/k- Navigate up/down
You can customize the plugin by passing options to the setup function:
require('modified-buffers').setup({
width = 50, -- Width of the floating window
max_height = 15, -- Maximum height of the floating window
border = 'rounded', -- Border style: 'rounded', 'single', 'double', 'solid', 'shadow'
title = ' Modified Buffers ', -- Window title
}){
'benbpyle/modified-buffers.nvim',
keys = {
{ '<leader>bl', '<cmd>ModifiedBuffers<cr>', desc = 'Modified [B]uffer [L]ist' },
},
opts = {
width = 60,
border = 'double',
},
}Built out of a need for a simple, focused way to see which buffers have unsaved changes without the clutter of showing all open buffers. Perfect for keeping track of your work-in-progress files.
BSD 3-Clause - see LICENSE for details
Issues and pull requests are welcome!