Skip to content

Commit

Permalink
Validate the config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcha0713 committed Nov 25, 2022
1 parent e1a29d9 commit 679800a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/cmp-tw2css/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ source.new = function()
return self
end

---@param user_opt table
source.setup = function(user_opt)
if user_opt then
vim.validate({ fallback = { user_opt.fallback, "boolean" } })
opt = vim.tbl_deep_extend("force", opt, user_opt)
end
end
Expand Down

0 comments on commit 679800a

Please sign in to comment.