-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathlazy.lua
More file actions
84 lines (81 loc) · 2.27 KB
/
lazy.lua
File metadata and controls
84 lines (81 loc) · 2.27 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
81
82
83
84
-- ██╗ █████╗ ███████╗██╗ ██╗ Z
-- ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝ Z
-- ██║ ███████║ ███╔╝ ╚████╔╝ z
-- ██║ ██╔══██║ ███╔╝ ╚██╔╝ z
-- ███████╗██║ ██║███████╗ ██║
-- ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
local repo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
spec = {
require("ui.colorschemes"),
require("core.mason"),
require("lsp.init"),
require("core.snacks"),
require("core.yank"),
require("core.blink"),
require("core.tmux"),
require("core.telescope"),
require("core.surround"),
require("core.conform"),
require("core.trouble"),
require("ui.whichkey"),
require("ui.lualine"),
require("ui.devicons"),
require("ui.ansi"),
require("ui.colorizer"),
require("ui.lush"),
require("core.match"),
require("core.fzf"),
require("core.git"),
require("core.copilot"),
require("core.dadbod"),
require("core.treesj"),
require("ui.signs"),
require("ui.tint"),
require("ui.treesitter"),
},
dev = {
path = "~/.local/src",
},
lockfile = vim.fn.stdpath("config") .. "/lua/cfg/pkglock.json",
ui = {
size = { width = 0.8, height = 0.8 },
wrap = true,
border = "shadow",
icons = require("utils.icons").lazy,
},
performance = {
reset_packpath = true,
cache = {
enabled = true,
},
rtp = {
disabled_plugins = {
"gzip",
"matchit",
"matchparen",
"netrwPlugin",
"rplugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
})
local loader = require("lazy.core.loader")
local config = require("lazy.core.config")
local function disable_all_plugins()
for _, plugin in pairs(config.plugins) do
if plugin._.loaded then
loader.deactivate(plugin)
end
end
end
vim.api.nvim_create_user_command("LazyDisable", disable_all_plugins, {})