Skip to content

How do I add / enable support for "my filetype" #255

@NullVoxPopuli

Description

@NullVoxPopuli

I've tried a couple things:

      local TagConfigs = require("nvim-ts-autotag.config.init")
      TagConfigs:update(TagConfigs:get("typecsript.glimmer"):override("typescript.glimmer", {
        start_tag_pattern = { "element_node_start" },
        end_tag_pattern = { "element_node_end" },
      }))

but am not sure exact things -- and I haven't been able to get my components to auto-close just yet.
tree looks like this:

  (element_node ; [3, 2] - [3, 37]
    (element_node_start ; [3, 2] - [3, 23]
      (tag_name) ; [3, 3] - [3, 5]
      (attribute_node ; [3, 6] - [3, 22]
        (attribute_name) ; [3, 6] - [3, 11]
        (concat_statement))) ; [3, 12] - [3, 22]
    (mustache_statement ; [3, 23] - [3, 32]
      (identifier)) ; [3, 25] - [3, 30]
    (element_node_end ; [3, 32] - [3, 37]
      (tag_name))) ; [3, 34] - [3, 36]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions