forge
Explore
Log in

Don't you dare go Hollow

dotfiles

Clone
★ 0

0 watching0 forksShellGPL-3.0334.8 KiBb1320e9Tahinli17 days ago105 commits

lazy.lua31 lines, 1.0 KiBHistoryRawDownload
1-- Bootstrap lazy.nvim
2local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
3if 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
15end
16vim.opt.rtp:prepend(lazypath)
17
18-- Make sure to setup `mapleader` and `maplocalleader` before
19-- loading lazy.nvim so that mappings are correct.
20-- This is also a good place to setup other settings (vim.opt)
21vim.g.mapleader = " "
22vim.g.maplocalleader = "\\"
23
24-- Setup lazy.nvim
25require("lazy").setup({
26 spec = {
27 { import = "plugins" },
28 },
29 -- automatically check for plugin updates
30 checker = { enabled = true, notify = false },
31})