main
59c7d64 ยท 8 days ago 139 commits
 1local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
 2if not (vim.uv or vim.loop).fs_stat(lazypath) then
 3	vim.notify("lazy.nvim not found. Cloning...", vim.log.levels.INFO)
 4
 5	local result = vim.fn.system({
 6		"git",
 7		"clone",
 8		"--filter=blob:none",
 9		"--branch=stable",
10		"https://github.com/folke/lazy.nvim.git",
11		lazypath,
12	})
13
14	if vim.v.shell_error ~= 0 then
15		vim.notify("Failed to clone lazy.nvim:\n" .. result, vim.log.levels.ERROR)
16		return
17	end
18end
19
20vim.opt.rtp:prepend(lazypath)
21
22require("options")
23require("keymaps")
24require("lazy").setup("plugins")