/
init.lua
58 lines (50 loc) · 1.21 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
local function check_lazy()
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not 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)
end
local function disable_builtins()
local PLUGINS = {
"gzip",
"zip",
"zipPlugin",
"fzf",
"tar",
"tarPlugin",
"getscript",
"getscriptPlugin",
"vimball",
"vimballPlugin",
"2html_plugin",
"logipat",
"spellfile_plugin",
"rrhelper",
"matchit",
"netrw",
"netrwPlugin",
"netrwSettings",
"netrwFileHandlers",
}
for _, plugin in ipairs(PLUGINS) do
vim.g["loaded_" .. plugin] = 1
end
end
check_lazy()
disable_builtins()
require("config.options")
require("config.commands")
require("config.diagnostic")
require("config.mappings")
require("config.bookmarks")
require("config.secondbrain")
require("lazy").setup("plugins", {
ui = {
backdrop = 100,
border = "rounded"
}
})
require("lang.cpp")
require("lang.json")