bugfix: Ensure lvim table is valid before calling Log:warn() (#1742)

Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
This commit is contained in:
James Walmsley 2021-10-12 16:12:55 +01:00 committed by GitHub
parent 3dc24cd0c3
commit 5deb0e57ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 16 deletions

View file

@ -109,13 +109,7 @@ function M:init()
}
end
require("lvim.config"):init {
config_dir = self.config_dir,
}
local config = require "lvim.config"
config:init {
user_config = join_paths(self.config_dir, "config.lua"),
}
require("lvim.config"):init()
require("lvim.plugin-loader"):init {
package_root = self.pack_dir,