diff options
author | hui.liu <[email protected]> | 2021-07-14 12:36:57 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-14 00:36:57 -0400 |
commit | 75b5cc4d9f15bef90993e99514af4d1a6cca9892 (patch) | |
tree | dba0bbfe2650467d0767449e0b5351eda7c9eb48 | |
parent | f87e85a032466bf3e0d484f747443350547d31a1 (diff) |
Improve error message in lv-config file (#922)
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |