-
Notifications
You must be signed in to change notification settings - Fork 16
Configuration Recipes
This page is a place to share various configurations for workspaces.nvim. If you make something useful please share it here!
Editing Instructions:
Please follow the following format:
Dependencies: list required plugins if applicable
briefly explain the behavior
require("workspaces.nvim").setup({
-- setup code here
})
Further details, notes, instructions, etc. here.
If you feel the need to deviate from this format that is fine, but try to keep things organized!
Dependencies: nvim-telescope/telescope.nvim
Opens a Telescope file fuzzy finder after switching directories.
require("workspaces").setup({
hooks = {
open = "Telescope find_files",
}
})
Dependencies: kyazdani42/nvim-tree.lua
Ensures NvimTree is open after switching directories
require("workspaces").setup({
hooks = {
open = "NvimTreeOpen",
}
})
Dependencies: natecraddock/sessions.nvim
Uses sessions.nvim to load a saved buffer, window, and tab layout from the current directory after opening a workspace. If no session exists, nothing happens.
require("workspaces").setup({
hooks = {
open_pre = {
"SessionsStop",
"silent %bdelete!",
},
open = {
function()
require("sessions").load(nil, { silent = true })
end
}
},
})
Note that the sessions.load()
function assumes a default sessions path has been configured