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() if not vim.g.vscode then require("lazy").setup({ spec = "lazyvim.plugins", defaults = { lazy = true, version = false }, checker = { enabled = true }, }) end -- This might not be best, but it allows for easy resetting ColorMe = function() local colorscheme = "gruvbox-material" local okay, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) if not okay then vim.notify("Colorscheme " .. colorscheme .. " not found!") vim.cmd("colorsheme habamax") end end ColorMe()