1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-03-28 10:24:47 +01:00

NVIM: Split opts and config for lazy plugins

This commit is contained in:
2026-03-26 07:53:23 +01:00
parent 3c3cfd333d
commit d1e73e1c7d
25 changed files with 341 additions and 388 deletions

View File

@@ -14,22 +14,22 @@ return {
desc = "Telescope: find projects",
},
},
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,
},
})
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,
}