Repository navigation
Expand file tree
/
Copy pathinit.lua
More file actions
81 lines (73 loc) · 1.97 KB
/
Copy pathinit.lua
File metadata and controls
81 lines (73 loc) · 1.97 KB
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
---@diagnostic disable: undefined-field, deprecated
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
vim.api.nvim_echo({ { "Initializing, please wait..." } }, true, {})
local lazyrepo = "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("configs.global")
require("configs.options")
require("configs.autocmds")
require("configs.keymap")
-- Python support lives in `configs.python`: dedicated venv, PATH/VIRTUAL_ENV
-- export and package installation helpers.
require("configs.python").setup()
require("lazy").setup({
spec = {
{ import = "plugins" },
},
defaults = {
lazy = true,
version = false,
},
install = { colorscheme = { "nvchad" } },
rocks = {
enabled = false,
},
ui = {
border = "rounded",
icons = {
ft = "",
lazy = " ",
loaded = "",
not_loaded = "",
},
},
checker = {
enabled = true, -- check for plugin updates periodically
notify = false, -- notify on update
}, -- automatically check for plugin updates
performance = {
rtp = {
disabled_plugins = {
-- Only names that actually exist in $VIMRUNTIME/plugin/ have an effect.
"gzip",
"netrwPlugin",
"rplugin",
"tarPlugin",
"tutor",
"zipPlugin",
},
},
},
})
-- After `lazy.setup` so that `configs.lsp` can resolve `blink.cmp` and hand the
-- LSP servers completion capabilities that actually match the client.
require("configs.lsp")
require("vim._core.ui2").enable({
enable = true,
msg = {
target = "msg",
timeout = 4000,
},
})