-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
93 lines (91 loc) · 2.53 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://mirror.ghproxy.com/https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
require("config.settings")
require("config.keybinds")
require("config.autocmd")
require("lazy").setup({
defaults = { lazy = false },
spec = {
{ import = "plugins" },
},
concurrency = jit.os:find("Windows") and (vim.uv.available_parallelism() * 2) or nil,
git = {
log = { "--since=3 days ago" },
timeout = 120,
url_format = "https://mirror.ghproxy.com/https://github.com/%s.git",
},
dev = {
path = "~/projects",
patterns = {},
},
install = {
missing = true,
colorscheme = { "default" },
},
ui = {
size = { width = 0.8, height = 0.8 },
wrap = true,
border = "single",
icons = {
cmd = " ",
config = "",
event = " ",
favorite = " ",
ft = " ",
init = " ",
import = " ",
keys = " ",
lazy = " ",
loaded = "●",
not_loaded = "○",
plugin = " ",
runtime = " ",
require = " ",
source = " ",
start = " ",
task = "✔ ",
list = {
"●",
"➜",
"★",
"‒",
},
},
browser = nil,
throttle = 20,
custom_keys = {},
},
change_detection = { enabled = false },
performance = {
cache = { enabled = true },
reset_packpath = true,
rtp = {
reset = true,
paths = {},
disabled_plugins = {
-- "gzip",
"matchit",
"matchparen",
"netrwPlugin",
-- "tarPlugin",
"tohtml",
"tutor",
-- "zipPlugin",
},
},
}
})