Skip to content

Commit

Permalink
fix(lualine): Check if user opts are nil #76
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Mar 12, 2024
1 parent 6ef108a commit 2202e60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/core/plugins/lualine.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local user_conf = vim.g.config.plugins.lualine

local default_options = {
extensions = vim.g.config.plugins.lualine.extensions,
options = {
Expand Down Expand Up @@ -81,7 +82,7 @@ return {
lazy = true,
},
},
opts = vim.tbl_deep_extend("force", default_options, user_conf.opts),
opts = vim.tbl_deep_extend("force", default_options, (user_conf.opts or {})),
config = function(_, opts)
(user_conf.config_function or default_config_function)(opts)
end,
Expand Down

0 comments on commit 2202e60

Please sign in to comment.