summaryrefslogtreecommitdiff
path: root/lua/lvim/plugin-loader.lua
diff options
context:
space:
mode:
authorerodey <[email protected]>2023-04-12 14:29:11 +0600
committerGitHub <[email protected]>2023-04-12 04:29:11 -0400
commit3f2e91b667ff8ae89d277c123400bad200986da1 (patch)
treecec22dfa48283f72068f12850d8bdba02dc988a9 /lua/lvim/plugin-loader.lua
parentb5cc0a51bd23f0f09d662d7b1bbd9bbac344c571 (diff)
feat(lazy): lazy.nvim settings can be customized (#4010)
Diffstat (limited to 'lua/lvim/plugin-loader.lua')
-rw-r--r--lua/lvim/plugin-loader.lua30
1 files changed, 2 insertions, 28 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua
index 088b48a8..f389116e 100644
--- a/lua/lvim/plugin-loader.lua
+++ b/lua/lvim/plugin-loader.lua
@@ -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