An open API service indexing awesome lists of open source software.

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.

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.