2023-04-07 10:31:26 +02:00
|
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
|
|
-- bootstrap lazy.nvim
|
2024-03-15 17:42:23 +01:00
|
|
|
vim.fn.system({
|
|
|
|
"git",
|
|
|
|
"clone",
|
|
|
|
"--filter=blob:none",
|
|
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
|
|
"--branch=stable",
|
|
|
|
lazypath,
|
|
|
|
})
|
2023-04-07 10:31:26 +02:00
|
|
|
end
|
|
|
|
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
|
|
|
|
|
|
|
require("lazy").setup({
|
|
|
|
spec = {
|
|
|
|
-- add LazyVim and import its plugins
|
|
|
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
|
|
|
-- import any extras modules here
|
2023-06-24 13:21:02 +02:00
|
|
|
{ import = "lazyvim.plugins.extras.lang.json" },
|
2023-07-26 15:16:51 +02:00
|
|
|
{ import = "lazyvim.plugins.extras.lang.rust" },
|
2023-08-20 14:14:58 +02:00
|
|
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
2024-03-15 17:42:23 +01:00
|
|
|
{ import = "lazyvim.plugins.extras.lang.markdown" },
|
2023-09-11 12:34:21 +02:00
|
|
|
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
2023-06-24 13:21:02 +02:00
|
|
|
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
2024-03-15 17:42:23 +01:00
|
|
|
{ import = "lazyvim.plugins.extras.editor.harpoon2" },
|
2023-04-07 10:31:26 +02:00
|
|
|
-- import/override with your plugins
|
|
|
|
{ import = "plugins" },
|
|
|
|
},
|
|
|
|
defaults = {
|
|
|
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
|
|
|
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
|
|
|
lazy = false,
|
|
|
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
|
|
|
-- have outdated releases, which may break your Neovim install.
|
2023-09-11 12:34:21 +02:00
|
|
|
version = false, -- always use the latest git commit
|
|
|
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
2023-04-07 10:31:26 +02:00
|
|
|
},
|
2024-03-15 17:42:23 +01:00
|
|
|
install = { colorscheme = { "tokyonight" } },
|
2023-06-24 13:21:02 +02:00
|
|
|
checker = { enabled = false },
|
2023-04-07 10:31:26 +02:00
|
|
|
performance = {
|
|
|
|
rtp = {
|
|
|
|
-- disable some rtp plugins
|
|
|
|
disabled_plugins = {
|
|
|
|
"gzip",
|
|
|
|
-- "matchit",
|
|
|
|
-- "matchparen",
|
|
|
|
"tarPlugin",
|
|
|
|
"tohtml",
|
|
|
|
"tutor",
|
|
|
|
"zipPlugin",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|