https://github.com/shorya-1012/buffer_walker.nvim
A simple Neovim plugin written in lua to provide web borwser like back and forward navigation between buffers.
https://github.com/shorya-1012/buffer_walker.nvim
lua neovim neovim-plugin
Last synced: 3 months ago
JSON representation
A simple Neovim plugin written in lua to provide web borwser like back and forward navigation between buffers.
- Host: GitHub
- URL: https://github.com/shorya-1012/buffer_walker.nvim
- Owner: shorya-1012
- Created: 2025-09-07T12:47:14.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-10-29T06:59:43.000Z (5 months ago)
- Last Synced: 2025-10-29T08:38:03.432Z (5 months ago)
- Topics: lua, neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 3.91 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## BUFFER WALKER
A simple Neovim plugin that lets you walk back and forward through previously visited buffers — like browser-style back/forward navigation.
## ✨ Features
- Maintains two stacks to enable both forward and backward navigation
- Navigate **backward** to the previously visited buffer.
- Navigate **forward** after going back.
- Skips invalid or closed buffers automatically.
- Prevents infinite loops when switching buffers with the plugin.
## 📦 Installation
### [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
return {
"shorya-1012/buffer_walker.nvim",
config = function()
vim.keymap.set("n", ",", ":MoveBack", { silent = true })
vim.keymap.set("n", ".", ":MoveForward", { silent = true })
end
}
```
## Usage :
Use the commands *MoveBack* and *MoveForward* or use the key binds.