mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2024-12-28 21:19:16 -06:00
fix: correctly check for legacy setup
This commit is contained in:
parent
971547b9ac
commit
e674db4ca1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user