2023-01-10 02:38:06 +01:00
|
|
|
local M = {}
|
|
|
|
|
2023-12-02 06:04:57 +01:00
|
|
|
local function importFrom(p)
|
|
|
|
return { import = p }
|
|
|
|
end
|
|
|
|
|
2023-01-10 02:38:06 +01:00
|
|
|
function M.setup()
|
2023-12-21 16:21:14 +01:00
|
|
|
require("lazy").setup({
|
2024-04-29 15:50:59 +02:00
|
|
|
require("my.plugins.themes"),
|
|
|
|
require("my.plugins.whichkey"),
|
2023-12-25 14:14:33 +01:00
|
|
|
unpack(require("nix").lazy),
|
2023-12-21 16:21:14 +01:00
|
|
|
}, {
|
|
|
|
defaults = { lazy = true },
|
|
|
|
install = {
|
|
|
|
-- install missing plugins on startup. this doesn't increase startup time.
|
|
|
|
missing = true,
|
|
|
|
-- try to load one of these colorschemes when starting an installation during startup
|
|
|
|
colorscheme = { "rose-pine", "catpuccin" },
|
|
|
|
},
|
|
|
|
change_detection = {
|
|
|
|
enabled = false,
|
|
|
|
notify = false,
|
|
|
|
},
|
|
|
|
dev = {
|
|
|
|
-- Fallback to git when local plugin doesn't exist
|
|
|
|
fallback = true,
|
2023-09-08 19:49:18 +02:00
|
|
|
|
2023-12-21 16:21:14 +01:00
|
|
|
-- Directory where I store my local plugin projects
|
2024-09-24 05:41:40 +02:00
|
|
|
path = vim.g.nix_projects_dir,
|
2024-05-28 02:39:42 +02:00
|
|
|
patterns = { "prescientmoon" },
|
2023-12-21 16:21:14 +01:00
|
|
|
},
|
|
|
|
performance = {
|
|
|
|
rtp = {
|
|
|
|
paths = { vim.g.nix_extra_runtime },
|
|
|
|
disabled_plugins = {
|
|
|
|
"gzip",
|
|
|
|
"matchit",
|
|
|
|
"matchparen",
|
|
|
|
"netrwPlugin",
|
|
|
|
"tarPlugin",
|
|
|
|
"tohtml",
|
|
|
|
"tutor",
|
|
|
|
"zipPlugin",
|
2023-09-04 04:58:39 +02:00
|
|
|
},
|
2023-01-10 02:38:06 +01:00
|
|
|
},
|
2023-12-21 16:21:14 +01:00
|
|
|
},
|
|
|
|
})
|
2023-01-10 02:38:06 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>L", "<cmd>Lazy<cr>", { desc = "[L]azy ui" })
|
|
|
|
|
|
|
|
return M
|