.config/nvim/lua/lazy-bootstrap.lua

changeset 1187
ed422782cd13
parent 1131
f3044a1658fc
equal deleted inserted replaced
1186:ab57e995af63 1187:ed422782cd13
1 local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 1 local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2 if not vim.loop.fs_stat(lazypath) then 2 if not vim.uv.fs_stat(lazypath) then
3 vim.fn.system({ 3 vim.fn.system({
4 "git", 4 "git", "clone", "--filter=blob:none", "--branch=stable",
5 "clone", 5 "https://github.com/folke/lazy.nvim.git", lazypath,
6 "--filter=blob:none",
7 "https://github.com/folke/lazy.nvim.git",
8 "--branch=stable",
9 lazypath,
10 }) 6 })
11 end 7 end
12 vim.opt.rtp:prepend(vim.env.LAZY or lazypath) 8 vim.opt.rtp:prepend(lazypath)
13 9
14 require("lazy").setup({ 10 require("lazy").setup({
15 spec = { 11 spec = {
16 { 12 {
17 "rebelot/kanagawa.nvim", 13 "rebelot/kanagawa.nvim",
35 vim.cmd("colorscheme kanagawa") 31 vim.cmd("colorscheme kanagawa")
36 end, 32 end,
37 }, 33 },
38 { import = "plugins" }, 34 { import = "plugins" },
39 }, 35 },
36 concurrency = 4,
40 change_detection = { enabled = false }, 37 change_detection = { enabled = false },
41 defaults = { 38 defaults = { version = "*" },
42 version = "*", 39 local_spec = false, -- don't load .lazy.lua files
43 },
44 performance = { 40 performance = {
45 rtp = { 41 rtp = {
46 disabled_plugins = { 42 disabled_plugins = {
47 "gzip", 43 "gzip",
48 "tarPlugin", 44 "tarPlugin",

mercurial