-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinit.lua
43 lines (38 loc) · 876 Bytes
/
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
vim.loader.enable()
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.uv.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)
local lazyutil = require 'user.util.lazy'
_G.lazy_require = lazyutil.require
_G.very_lazy = lazyutil.very_lazy
require 'user.settings'
require 'user.commands'
require('lazy').setup({
import = 'user.plugins',
}, {
defaults = { lazy = true },
ui = { border = 'rounded' },
dev = vim.env.GIT_PROJECTS_DIR and {
path = vim.env.GIT_PROJECTS_DIR .. '/nvim',
fallback = true,
} or nil,
change_detection = {
enabled = false,
},
rocks = {
hererocks = true,
},
})
very_lazy(function()
require 'user.mappings'
require 'user.autocmds'
end)