2023-01-10 02:38:06 +01:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
function M.setup()
|
|
|
|
require("lazy").setup("my.plugins", {
|
|
|
|
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
|
2023-03-30 02:54:57 +02:00
|
|
|
colorscheme = { "rose-pine", "catpuccin" },
|
2023-01-10 02:38:06 +01:00
|
|
|
},
|
|
|
|
change_detection = {
|
|
|
|
enabled = false,
|
|
|
|
notify = false,
|
|
|
|
},
|
|
|
|
performance = {
|
|
|
|
rtp = {
|
|
|
|
paths = {
|
|
|
|
-- Extra runtime path specified by nix
|
|
|
|
os.getenv("NVIM_EXTRA_RUNTIME") or "",
|
|
|
|
},
|
2023-09-04 04:58:39 +02:00
|
|
|
disabled_plugins = {
|
|
|
|
"gzip",
|
|
|
|
"matchit",
|
|
|
|
"matchparen",
|
|
|
|
"netrwPlugin",
|
|
|
|
"tarPlugin",
|
|
|
|
"tohtml",
|
|
|
|
"tutor",
|
|
|
|
"zipPlugin",
|
|
|
|
},
|
2023-01-10 02:38:06 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>L", "<cmd>Lazy<cr>", { desc = "[L]azy ui" })
|
|
|
|
|
|
|
|
return M
|