Skip to content

Commit

Permalink
fix: bug where plugin errors if options is nil (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
vague2k authored Aug 14, 2024
1 parent 5101492 commit 4852358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/tailwind-tools/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4852358

Please sign in to comment.