Split plugin loading logic from the configuration (#796)

This commit is contained in:
Luc Sinet 2021-07-18 20:08:14 +02:00 committed by GitHub
parent 56f17cebd4
commit 6f9c521e22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 113 additions and 92 deletions

View file

@ -4,9 +4,14 @@ if not status_ok then
print "something is wrong with your lv-config"
print(error)
end
require "keymappings"
require "plugins"
local plugins = require "plugins"
local plugin_loader = require("plugin-loader").init()
plugin_loader:load { plugins, O.user_plugins }
vim.g.colors_name = O.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.
require "settings"
require "lv-utils"