-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.lua
More file actions
26 lines (24 loc) · 705 Bytes
/
init.lua
File metadata and controls
26 lines (24 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- This file simply bootstraps the installation of Lazy.nvim
local lazypath = vim.env.LAZY or vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.env.LAZY or (vim.uv or 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
vim.opt.rtp:prepend(lazypath)
-- validate that lazy is available
if not pcall(require, "lazy") then
vim.api.nvim_echo({
{ ("Unable to load lazy from: %s\n"):format(lazypath), "ErrorMsg" },
{ "Press any key to exit...", "MoreMsg" },
}, true, {})
vim.fn.getchar()
vim.cmd.quit()
end
require("lazy_setup")
require("polish")