mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2024-12-28 21:19:16 -06:00
Add HEEx support
This commit is contained in:
parent
e239a560f3
commit
f2d24aca1b
@ -43,6 +43,16 @@ local function setup_tag_configs()
|
||||
end_tag_pattern = { "ETag" },
|
||||
}))
|
||||
|
||||
-- Support Elixir HEEX files.
|
||||
-- HEEX is simply HTML with the addition of the <.component></.component> syntax.
|
||||
TagConfigs:add(html_tag_cfg:extend("heex", {
|
||||
start_tag_pattern = { "start_component" },
|
||||
start_name_tag_pattern = { "component_name" },
|
||||
end_tag_pattern = { "end_component" },
|
||||
end_name_tag_pattern = { "component_name" },
|
||||
skip_tag_pattern = { "end_component" },
|
||||
}))
|
||||
|
||||
TagConfigs:add(base_cfg:extend("typescriptreact", {
|
||||
start_tag_pattern = { "jsx_opening_element", "start_tag" },
|
||||
start_name_tag_pattern = {
|
||||
@ -135,10 +145,10 @@ local Setup = {
|
||||
["htmlangular"] = "html",
|
||||
["htmldjango"] = "html",
|
||||
["markdown"] = "html",
|
||||
["elixir"] = "html",
|
||||
["php"] = "html",
|
||||
["twig"] = "html",
|
||||
["blade"] = "html",
|
||||
["elixir"] = "heex",
|
||||
["javascriptreact"] = "typescriptreact",
|
||||
["javascript.jsx"] = "typescriptreact",
|
||||
["typescript.tsx"] = "typescriptreact",
|
||||
|
Loading…
Reference in New Issue
Block a user