1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-03-17 14:14:47 +01:00
Files
dotfiles/.config/nvim/lua/plugins/projections.lua
2026-03-14 09:42:33 +01:00

26 lines
683 B
Lua

return {
-- navigate between projects using telescope
"gnikdroy/projections.nvim",
dependencies = { "nvim-telescope/telescope.nvim" },
branch = "pre_release",
config = function()
require("projections").setup({
workspaces = { -- Default workspaces to search for
{ "~/code/main", { ".git" } },
{ "~/code/uni", { ".git" } },
},
store_hooks = {
pre = function()
-- nvim-tree
local nvim_tree_present, api = pcall(require, "nvim-tree.api")
if nvim_tree_present then
api.tree.close()
end
end,
},
})
require("telescope").load_extension("projections")
end,
}