From 75b5cc4d9f15bef90993e99514af4d1a6cca9892 Mon Sep 17 00:00:00 2001 From: "hui.liu" Date: Wed, 14 Jul 2021 12:36:57 +0800 Subject: Improve error message in lv-config file (#922) --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 680555f2..c8088523 100644 --- a/init.lua +++ b/init.lua @@ -1,8 +1,9 @@ require "default-config" require "keymappings" -local status_ok, _ = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/lv-config.lua") +local status_ok, error = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/lv-config.lua") if not status_ok then print "something is wrong with your lv-config" + print(error) end require "plugins" vim.g.colors_name = O.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs. -- cgit v1.2.3