fix: user config error if doesn't exits
This commit is contained in:
parent
c429651e95
commit
8a72226b48
1 changed files with 5 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue