lazy.lua (1537B)
1 -- Bootstrap lazy.nvim. 2 local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 3 if not (vim.uv or vim.loop).fs_stat(lazypath) then 4 local lazyrepo = "https://github.com/folke/lazy.nvim.git" 5 local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) 6 if vim.v.shell_error ~= 0 then 7 vim.api.nvim_echo({ 8 { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, 9 { out, "WarningMsg" }, 10 { "\nPress any key to exit..." }, 11 }, true, {}) 12 vim.fn.getchar() 13 os.exit(1) 14 end 15 end 16 vim.opt.rtp:prepend(lazypath) 17 18 -- Set up lazy.nvim. 19 require("lazy").setup({ 20 spec = { 21 -- import your plugins 22 { import = "plugins" }, 23 }, 24 -- Configure any other settings here. See the documentation for more details. 25 -- colorscheme that will be used when installing plugins. 26 install = { colorscheme = { "solarized-osaka" } }, 27 -- automatically check for plugin updates 28 checker = { enabled = true }, 29 -- lazy.nvim wants a nerd font installed. I don't. 30 ui = { 31 icons = { 32 cmd = "🏷️", 33 config = "🔧", 34 event = "⚡️", 35 favorite = "⭐️", 36 ft = "📄", 37 init = "⚙️ ", 38 import = "⬇️ ", 39 keys = "💻", 40 lazy = "💤", 41 loaded = "●", 42 not_loaded = "⚪︎", 43 plugin = "📦", 44 runtime = "🚅", 45 require = "📋", 46 source = "</> ", 47 start = "▶️ ", 48 task = "✅", 49 list = { 50 "•", 51 "◦", 52 "⁃", 53 "‣", 54 }, 55 }, 56 }, 57 })