From 619709eb2f0c32e0c96b1983403a6e84911c3895 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Sat, 10 Jul 2021 03:19:32 -0400 Subject: refactor settings for hotswap --- init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index b22d8871..982623d0 100644 --- a/init.lua +++ b/init.lua @@ -1,11 +1,15 @@ require "default-config" require "keymappings" -vim.cmd("luafile " .. CONFIG_PATH .. "/lv-config.lua") -require "settings" +local status_ok, _ = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/lv-config.lua") +if not status_ok then + print "something is wrong with your lv-config" +end require "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" require "lv-treesitter" + -- TODO these guys need to be in language files -- require "lsp" -- if O.lang.emmet.active then -- cgit v1.2.3