fix: user config error if doesn't exits

This commit is contained in:
Matthew Leong 2023-01-10 09:31:46 -08:00
parent c429651e95
commit 8a72226b48

View file

@ -1,5 +1,9 @@
-- DEFAULT USER SETTINGS
local user_config = require('cosmic.config.config')
local ok, user_config = pcall(require, 'cosmic.config.config')
if not ok then
user_config = {}
end
local default_config = {
border = 'rounded',