mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
feat(lazy): lazy.nvim settings can be customized (#4010)
This commit is contained in:
parent
b5cc0a51bd
commit
3f2e91b667
2 changed files with 31 additions and 28 deletions
|
@ -24,6 +24,35 @@ return {
|
|||
-- use config.lua for this not put here
|
||||
},
|
||||
|
||||
lazy = {
|
||||
opts = {
|
||||
install = {
|
||||
missing = true,
|
||||
colorscheme = { "lunar", "habamax" },
|
||||
},
|
||||
ui = {
|
||||
border = "rounded",
|
||||
},
|
||||
root = require("lvim.utils").join_paths(get_runtime_dir(), "site", "pack", "lazy", "opt"),
|
||||
git = {
|
||||
timeout = 120,
|
||||
},
|
||||
lockfile = require("lvim.utils").join_paths(get_config_dir(), "lazy-lock.json"),
|
||||
performance = {
|
||||
rtp = {
|
||||
reset = false,
|
||||
},
|
||||
},
|
||||
defaults = {
|
||||
lazy = false,
|
||||
version = nil,
|
||||
},
|
||||
readme = {
|
||||
root = require("lvim.utils").join_paths(get_runtime_dir(), "lazy", "readme"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
autocommands = {},
|
||||
lang = {},
|
||||
log = {
|
||||
|
|
|
@ -93,34 +93,8 @@ function plugin_loader.load(configurations)
|
|||
vim.opt.runtimepath:remove(join_paths(plugins_dir, "*"))
|
||||
|
||||
local status_ok = xpcall(function()
|
||||
local opts = {
|
||||
install = {
|
||||
missing = true,
|
||||
colorscheme = { lvim.colorscheme, "lunar", "habamax" },
|
||||
},
|
||||
ui = {
|
||||
border = "rounded",
|
||||
},
|
||||
root = plugins_dir,
|
||||
git = {
|
||||
timeout = 120,
|
||||
},
|
||||
lockfile = join_paths(get_config_dir(), "lazy-lock.json"),
|
||||
performance = {
|
||||
rtp = {
|
||||
reset = false,
|
||||
},
|
||||
},
|
||||
defaults = {
|
||||
lazy = false,
|
||||
version = nil,
|
||||
},
|
||||
readme = {
|
||||
root = join_paths(get_runtime_dir(), "lazy", "readme"),
|
||||
},
|
||||
}
|
||||
|
||||
lazy.setup(configurations, opts)
|
||||
table.insert(lvim.lazy.opts.install.colorscheme, 1, lvim.colorscheme)
|
||||
lazy.setup(configurations, lvim.lazy.opts)
|
||||
end, debug.traceback)
|
||||
|
||||
if not status_ok then
|
||||
|
|
Loading…
Reference in a new issue