windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.63k stars 87 forks source link

Support htmldjango? #107

Closed silentjay closed 1 year ago

silentjay commented 1 year ago

This package comes installed and enabled by default in astronvim. Sadly doesn't seem to support htmldjango filetypes even after adding it to the filetypes list. It works as expected for others. Any chance htmldjango support could be added?

Here's what I've added to my core.lua

  {
    "windwp/nvim-ts-autotag",
    config = function(plugin, opts)
      -- add more custom nvim-ts-autotag configuration such as custom rules
      local ts_autotag = require "nvim-ts-autotag"
      ts_autotag.setup {
        enable = true,
        filetypes = { "htmldjango", "html", "javascript" },
      }
    end,
  },

The above is definitely getting run, if I remove html from filetypes the plugin no longer runs if I run :set ft=html. So looks like adding htmldjango has zero effect.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.