Skip to content

Commit

Permalink
docs: update README setup example
Browse files Browse the repository at this point in the history
  • Loading branch information
PriceHiller authored and windwp committed May 20, 2024
1 parent e674db4 commit 973f223
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 973f223

Please sign in to comment.