From 48523580c6af449a7a57610ce5596c716cf4363a Mon Sep 17 00:00:00 2001 From: Alberto Hernandez <121782036+vague2k@users.noreply.github.com> Date: Wed, 14 Aug 2024 02:13:41 -0400 Subject: [PATCH] fix: bug where plugin errors if options is nil (#42) --- lua/tailwind-tools/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/tailwind-tools/init.lua b/lua/tailwind-tools/init.lua index e1552a7..aace9b4 100644 --- a/lua/tailwind-tools/init.lua +++ b/lua/tailwind-tools/init.lua @@ -9,7 +9,7 @@ local motions = require("tailwind-tools.motions") ---@param options TailwindTools.Option M.setup = function(options) - config.options = vim.tbl_deep_extend("keep", options, config.options) + config.options = vim.tbl_deep_extend("keep", options or {}, config.options) state.conceal.enabled = config.options.conceal.enabled state.color.enabled = config.options.document_color.enabled