diff --git a/README.md b/README.md index ce284a0..976c87b 100644 --- a/README.md +++ b/README.md @@ -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', diff --git a/lua/nvim-ts-autotag/internal.lua b/lua/nvim-ts-autotag/internal.lua index 826017f..67b1051 100644 --- a/lua/nvim-ts-autotag/internal.lua +++ b/lua/nvim-ts-autotag/internal.lua @@ -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 = { diff --git a/sample/index.xml b/sample/index.xml new file mode 100644 index 0000000..96d93f7 --- /dev/null +++ b/sample/index.xml @@ -0,0 +1,37 @@ + +
+ +Belgian Waffles +$5.95 +Two of our famous Belgian Waffles with plenty of real maple syrup +650 + + +Strawberry Belgian Waffles +$7.95 +Light Belgian waffles covered with strawberries and whipped cream +900 + + +Berry-Berry Belgian Waffles +$8.95 +Light Belgian waffles covered with an assortment of fresh berries and whipped cream +900 + + +French Toast +$4.50 +Thick slices made from our homemade sourdough bread +600 + + +Homestyle Breakfast +$6.95 +Two eggs, bacon or sausage, toast, and our ever-popular hash browns +950 + +