Scope.nvim
π About
Revolutionize Your Neovim Tab Workflow: Introducing Enhanced Tab Scoping!
Elevate your Neovim tab game with our cutting-edge plugin. Bye-bye cluttered tabs, hello streamlined efficiency!
This plugin revolutionizes tab management by introducing scoped buffers.
Seamlessly navigate through buffers within each tab using commands like
:bnext
and :bprev
. No more buffer chaos!
Experience the power of scoped buffers, boost productivity, and reclaim your editing flow.
π¦ Installation
Upgrade your Neovim tabs now with your favorite package manager!
{ "tiagovla/scope.nvim" }
use("tiagovla/scope.nvim")
Plug "tiagovla/scope.nvim"
βοΈ Configuration
-- init.lua
require("scope").setup({})
π Extensions
π Telescope
Extension to show all buffers from all tabs.
π Setup
-- init.lua
require("telescope").load_extension("scope")
π’ Commands
:Telescope scope buffers
πΎ Session Support (Experimental)
Extension to allow the usage of the plugin with session managers.
π Setup
-- init.lua
vim.opt.sessionoptions = { -- required
"buffers",
"tabpages",
"globals",
}
require("scope").setup({})
β Session Manager Configurations
π Nvim-Possession
{
"gennaro-tedesco/nvim-possession",
lazy = false,
dependencies = {
{
"tiagovla/scope.nvim",
lazy = false,
config = true,
},
},
config = function()
require("nvim-possession").setup({
autoload = true,
autoswitch = {
enable = true,
},
save_hook = function()
vim.cmd([[ScopeSaveState]]) -- Scope.nvim saving
end,
post_hook = function()
vim.cmd([[ScopeLoadState]]) -- Scope.nvim loading
end,
})
end,
},
π’ Commands
Commands | Description |
---|---|
:ScopeLoadState |
load the plugin's state as a global variable from a session file |
:ScopeSaveState |
save the plugin's state as a global variable in a session file |
Additionally, the API endpoints
require("scope.session").serialize_state()
and
require("scope.session").deserialize_state(state)
are available in case
the user prefers to handle the state manually.
π₯ Contributing
Pull requests from contributors are warmly welcome. To ensure the highest
quality, please remember to carefully review the formatting using stylua
.