mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-02 09:04:36 +02:00
wrap requires in pcall
This commit is contained in:
parent
0e2ad0c1fe
commit
716f127e95
12 changed files with 58 additions and 16 deletions
|
@ -1,8 +1,10 @@
|
|||
-- if not package.loaded['galaxyline'] then
|
||||
-- return
|
||||
-- end
|
||||
|
||||
local gl = require "galaxyline"
|
||||
local status_ok, gl = pcall(require, "galaxyline")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
-- get my theme in galaxyline repo
|
||||
-- local colors = require('galaxyline.theme').default
|
||||
local colors = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue