at main 957 B view raw
1vim.g.mapleader = " " 2vim.g.maplocalleader = " " 3 4require("config.options") 5require("config.keymap") 6 7local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 8if not (vim.uv or vim.loop).fs_stat(lazypath) then 9 local lazyrepo = "https://github.com/folke/lazy.nvim.git" 10 local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) 11 if vim.v.shell_error ~= 0 then 12 vim.api.nvim_echo({ 13 { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, 14 { out, "WarningMsg" }, 15 { "\nPress any key to exit..." }, 16 }, true, {}) 17 vim.fn.getchar() 18 os.exit(1) 19 end 20end 21vim.opt.rtp:prepend(lazypath) 22require("lazy").setup("plugins", { 23 change_detection = { enabled = true, notify = false }, 24 ui = { 25 icons = { 26 ft = "", 27 lazy = "󰂠 ", 28 loaded = "", 29 not_loaded = "", 30 }, 31 }, 32})