2023-03-12 01:04:48 +01:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
|
|
vim.fn.system({
|
|
|
|
"git",
|
|
|
|
"clone",
|
|
|
|
"--filter=blob:none",
|
|
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
|
|
"--branch=stable",
|
|
|
|
lazypath,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
|
|
|
|
|
|
|
M.setup = function(plugins)
|
|
|
|
require("lazy").setup(plugins, {
|
2023-03-30 08:32:20 +02:00
|
|
|
install = {
|
|
|
|
colorscheme = { "catppuccin" },
|
|
|
|
},
|
2023-03-12 01:04:48 +01:00
|
|
|
performance = {
|
|
|
|
rtp = {
|
|
|
|
disabled_plugins = {
|
|
|
|
"2html_plugin",
|
|
|
|
"bugreport",
|
|
|
|
"compiler",
|
|
|
|
"ftplugin",
|
|
|
|
"fzf",
|
|
|
|
"getscript",
|
|
|
|
"getscriptPlugin",
|
|
|
|
"gzip",
|
|
|
|
"logipat",
|
|
|
|
"matchit",
|
|
|
|
"netrw",
|
|
|
|
"netrwFileHandlers",
|
|
|
|
"netrwPlugin",
|
|
|
|
"netrwSettings",
|
|
|
|
"optwin",
|
|
|
|
"rplugin",
|
|
|
|
"rrhelper",
|
|
|
|
"spellfile_plugin",
|
|
|
|
"synmenu",
|
|
|
|
"syntax",
|
|
|
|
"tar",
|
|
|
|
"tarPlugin",
|
|
|
|
"tutor",
|
|
|
|
"vimball",
|
|
|
|
"vimballPlugin",
|
|
|
|
"zip",
|
|
|
|
"zipPlugin",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ui = {
|
|
|
|
icons = {
|
|
|
|
cmd = " ",
|
|
|
|
config = "",
|
|
|
|
event = " ",
|
|
|
|
ft = " ",
|
|
|
|
init = " ",
|
|
|
|
keys = " ",
|
|
|
|
plugin = " ",
|
|
|
|
runtime = " ",
|
|
|
|
source = " ",
|
|
|
|
start = " ",
|
|
|
|
task = " ",
|
|
|
|
},
|
2023-06-12 05:46:16 +02:00
|
|
|
border = vim.g.bc.style,
|
2023-03-12 01:04:48 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|