mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-28 10:24:47 +01:00
36 lines
755 B
Lua
36 lines
755 B
Lua
return {
|
|
-- navigate between projects using telescope
|
|
"gnikdroy/projections.nvim",
|
|
dependencies = {
|
|
"nvim-telescope/telescope.nvim",
|
|
},
|
|
branch = "pre_release",
|
|
keys = {
|
|
{
|
|
"<leader>fp",
|
|
function()
|
|
vim.cmd("Telescope projections")
|
|
end,
|
|
desc = "Telescope: find projects",
|
|
},
|
|
},
|
|
opts = {
|
|
workspaces = {
|
|
{ "~/code/main", { ".git" } },
|
|
{ "~/code/uni", { ".git" } },
|
|
},
|
|
store_hooks = {
|
|
pre = function()
|
|
local ok, api = pcall(require, "nvim-tree.api")
|
|
if ok then
|
|
api.tree.close()
|
|
end
|
|
end,
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
require("projections").setup(opts)
|
|
require("telescope").load_extension("projections")
|
|
end,
|
|
}
|