mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2024-12-28 21:19:16 -06:00
docs: update README setup example
This commit is contained in:
parent
e674db4ca1
commit
973f223d9c
17
README.md
17
README.md
@ -37,7 +37,22 @@ Before Input After
|
||||
Requires `Nvim 0.9.0` and up.
|
||||
|
||||
```lua
|
||||
require('nvim-ts-autotag').setup()
|
||||
require('nvim-ts-autotag').setup({
|
||||
opts = {
|
||||
-- Defaults
|
||||
enable_close = true, -- Auto close tags
|
||||
enable_rename = true, -- Auto rename pairs of tags
|
||||
enable_close_on_slash = false -- Auto close on trailing </
|
||||
},
|
||||
-- Also override individual filetype configs, these take priority.
|
||||
-- Empty by default, useful if one of the "opts" global settings
|
||||
-- doesn't work well in a specific filetype
|
||||
per_filetype = {
|
||||
["html"] = {
|
||||
enable_close = false
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
> [!CAUTION]
|
||||
|
Loading…
Reference in New Issue
Block a user