Skip to content

Commit

Permalink
fix: correctly check for legacy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PriceHiller committed May 15, 2024
1 parent c2bd871 commit ccb2a82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/nvim-ts-autotag/config/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ local Setup = {
--- Do general plugin setup
---@param opts nvim-ts-autotag.PluginSetup
function Setup.setup(opts)
opts = opts or {}
if Setup.did_setup then
return
end
if opts and not opts.opts then
---@diagnostic disable-next-line: undefined-field
if opts.enable_rename or opts.enable_close or opts.enable_close_on_slash then
vim.notify(
"nvim-ts-autotag: Using the legacy setup opts! Please migrate to the new setup options layout as this will eventually have its support removed in 1.0.0!",
vim.log.levels.WARN
Expand Down

0 comments on commit ccb2a82

Please sign in to comment.