Remove xml because treesitter don't support it

This commit is contained in:
windwp 2021-03-14 07:33:13 +07:00
parent 1e1c4ce4d9
commit 7cbfeecc53
3 changed files with 41 additions and 4 deletions

View File

@ -1,8 +1,8 @@
# nvim-ts-autotag
Use treesitter to **autoclose** and **autorename** xml tag
Use treesitter to **autoclose** and **autorename** html tag
It work with html,xml,tsx,vue,svelte.
It work with html,tsx,vue,svelte.
## Usage
@ -37,7 +37,7 @@ require('nvim-ts-autotag').setup()
``` lua
local filetypes = {
'html', 'xml', 'javascript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue'
'html', 'javascript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue'
}
local skip_tags = {
'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'slot',

View File

@ -6,7 +6,7 @@ local configs = require'nvim-treesitter.configs'
local M = {}
M.tbl_filetypes = {
'html', 'xml', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue'
'html', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue'
}
M.tbl_skipTag = {

37
sample/index.xml Normal file
View File

@ -0,0 +1,37 @@
<breakfast_menu>
<div>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description
>Two of our famous Belgian Waffles with plenty of real maple syrup</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description
>Light Belgian waffles covered with strawberries and whipped cream</description>
<calories>900</calories>
</food>
<food>
<name>Berry-Berry Belgian Waffles</name>
<price>$8.95</price>
<description
>Light Belgian waffles covered with an assortment of fresh berries and whipped cream</description>
<calories>900</calories>
</food>
<food>
<name>French Toast</name>
<price>$4.50</price>
<description>Thick slices made from our homemade sourdough bread</description>
<calories>600</calories>
</food>
<food>
<name>Homestyle Breakfast</name>
<price>$6.95</price>
<description
>Two eggs, bacon or sausage, toast, and our ever-popular hash browns</description>
<calories>950</calories>
</food>
</breakfast_menu>