mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2024-12-30 14:09:14 -06:00
refactor: simplify internal setup
This commit is contained in:
parent
6e9742a006
commit
1550f128bd
@ -152,15 +152,9 @@ M.setup = function(opts)
|
||||
opts = opts or {}
|
||||
M.tbl_filetypes = opts.filetypes or M.tbl_filetypes
|
||||
M.tbl_skipTag = opts.skip_tag or M.tbl_skipTag
|
||||
if opts.enable_rename ~= nil then
|
||||
M.enable_rename = opts.enable_rename
|
||||
end
|
||||
if opts.enable_close ~= nil then
|
||||
M.enable_close = opts.enable_close
|
||||
end
|
||||
if opts.enable_close_on_slash ~= nil then
|
||||
M.enable_close_on_slash = opts.enable_close_on_slash
|
||||
end
|
||||
M.enable_rename = opts.enable_rename or M.enable_rename
|
||||
M.enable_close = opts.enable_close or M.enable_close
|
||||
M.enable_close_on_slash = opts.enable_close_on_slash or M.enable_close_on_slash
|
||||
did_setup = true
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user