JoosepAlviste / nvim-ts-context-commentstring

Neovim treesitter plugin for setting the commentstring based on the cursor location in a file.
MIT License
1.16k stars 34 forks source link

[Feature Request] Support Astro #46

Closed peterhpchen closed 2 years ago

peterhpchen commented 2 years ago

Astro is a web framework. It has its own file type .astro.

https://astro.build/

It can be set up by the following:

require'nvim-treesitter.configs'.setup {
  context_commentstring = {
    enable = true,
    config = {
      astro = '<!-- %s -->'
    }
  }
}

Can you support it by default? I would love to send a pull request for this change if you need it.

JoosepAlviste commented 2 years ago

Hey! Of course, will gladly accept a PR 😄