https://github.com/naranyala/buffcounts.nvim
buffcounts.nvim
https://github.com/naranyala/buffcounts.nvim
buffers neovim neovim-plugin
Last synced: 7 months ago
JSON representation
buffcounts.nvim
- Host: GitHub
- URL: https://github.com/naranyala/buffcounts.nvim
- Owner: naranyala
- License: mit
- Created: 2025-03-07T03:58:06.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T04:36:02.000Z (7 months ago)
- Last Synced: 2025-03-07T05:20:58.308Z (7 months ago)
- Topics: buffers, neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buffcounts.nvim

this plugin aims to improve clarity for each opened buffer, providing a clear ranking for the most opened buffers.
- enhance workflow clarity
- easy to re-open buffer with tools like `telescope.nvim`
- respect long directory path or filename (one level parent dir)
- respect main content width view (not hiding the actual viewed content below)## installation
### `lazy.nvim`
```lua
return {
-- ...
{
"naranyala/buffcounts.nvim",
config = function()
require("buffcounts").setup {
min_width = 25,
max_width = 80,
}-- reset every open project and show the sidebar/panel
vim.cmd [[BuffCountsReset]]
vim.cmd [[BuffCountsToggle]]
end
}
-- ...
}```
there is three main command:
- BuffCountsToggle: toggle show/hide sidebar or panel
- BuffCountsRefresh: reload the ui
- BuffCountsReset: reset the rank## todos
- [] disable sorting, just list of buffer history
- [] navigate buffer history with index> 2025 - @naranyala