.config/nvim/lua/lazy-bootstrap.lua

Sun, 05 Mar 2023 23:19:03 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 05 Mar 2023 23:19:03 -0500
changeset 1066
c826661721a8
parent 1064
fcfa295076a8
child 1073
911aa9d81e71
permissions
-rw-r--r--

detect presence of nvim

1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 if not vim.loop.fs_stat(lazypath) then
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
3 vim.fn.system({
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
4 "git",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
5 "clone",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
6 "--filter=blob:none",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
7 "https://github.com/folke/lazy.nvim.git",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
8 "--branch=stable",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
9 lazypath,
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
10 })
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 end
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13
1019
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
14 require("lazy").setup({
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
15 spec = {
1049
3f01468ffc32 Switch to themer jellybeans
Meredith Howard <mhoward@roomag.org>
parents: 1019
diff changeset
16 {
3f01468ffc32 Switch to themer jellybeans
Meredith Howard <mhoward@roomag.org>
parents: 1019
diff changeset
17 "themercorp/themer.lua",
1019
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
18 priority = 1000,
1049
3f01468ffc32 Switch to themer jellybeans
Meredith Howard <mhoward@roomag.org>
parents: 1019
diff changeset
19 opts = {
3f01468ffc32 Switch to themer jellybeans
Meredith Howard <mhoward@roomag.org>
parents: 1019
diff changeset
20 colorscheme = "jellybeans",
3f01468ffc32 Switch to themer jellybeans
Meredith Howard <mhoward@roomag.org>
parents: 1019
diff changeset
21 },
3f01468ffc32 Switch to themer jellybeans
Meredith Howard <mhoward@roomag.org>
parents: 1019
diff changeset
22 },
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1049
diff changeset
23 { import = "plugins" },
1019
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
24 },
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
25 change_detection = { enabled = false },
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
26 performance = {
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
27 rtp = {
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
28 disabled_plugins = {
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
29 "gzip",
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
30 "tarPlugin",
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
31 "tohtml",
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
32 "zipPlugin",
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
33 "tutor",
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
34 },
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
35 },
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
36 },
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
37 })

mercurial