-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.lua
44 lines (40 loc) · 1.09 KB
/
init.lua
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
if not vim.fn.has("nvim-0.10") then
vim.api.nvim_echo(
{ { "You need to be on at least neovim 0.10 because that's what I'm on. Don't report errors if you see this, thanks!", "ErrorMsg" } },
true,
{}
)
return
end
-- First things first load all our global options
require("globals")
-- Install lazy.nvim if it's missing
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
--@diagnostic disable-next-line: undefine-field
if not vim.loop.fs_stat(lazypath) and not vim.g.started_by_firenvim then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
end
vim.opt.rtp:prepend(lazypath)
-- Next bootstrap everything
require("lazy").setup("specs", {
dev = {
path = "~/build/nvim/plugins",
},
ui = {
border = vim.g.neovide and "rounded" or "none",
},
checker = {
enabled = true,
notify = false,
},
change_detection = {
enabled = true,
notify = false,
},
rocks = {
hererocks = true,
},
})
-- Lastly load all our keybindings
require("keybindings")