windwp / nvim-ts-autotag

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

Error when initializing plugin, doesn't work. #37

Closed iamdavidmartin closed 2 years ago

iamdavidmartin commented 2 years ago

Hi all,

I'm trying to use nvim-ts-autotag with a vanilla installation of LunarVIM, but I can't get it to close any tags. Here's a screenshot of the error I'm getting. As you can see it's only a partial description. I'd like to show the error message, but I don't know how to view the whole thing.

image

Here you can see that the tag I typed in is not closed: image

And here is how I'm setting up the plugin, which comes from here: https://www.lunarvim.org/plugins/03-extra-plugins.html#nvim-ts-autotag

   {   
      "windwp/nvim-ts-autotag",   
      event = "InsertEnter",   
      config = function()   
        require("nvim-ts-autotag").setup()   
      end,
    }

I'd love to get this plugin working. Thanks in advance for any help you can provide!

iamdavidmartin commented 2 years ago

Solved with this comment: https://github.com/windwp/nvim-ts-autotag/issues/10#issuecomment-806925258

: TSInstall tsx