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 -- map leader and register keymap for Lazy. vim.g.mapleader = " " vim.g.maplocalleader = " " vim.api.nvim_set_keymap("n", "L", ":Lazy", { desc = "Lazy GUI" }) vim.opt.rtp:prepend(vim.env.LAZY or lazypath) require("lazyvim.config").setup() require("lazyvim.utils").setup() require("lazy").setup({ spec = "lazyvim.plugins", defaults = { lazy = false, version = false }, checker = { enabled = true }, }) require("lazyvim.utils").setColorscheme()