Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use nvim-treesitter module template #1

Closed
elianiva opened this issue Mar 9, 2021 · 1 comment
Closed

use nvim-treesitter module template #1

elianiva opened this issue Mar 9, 2021 · 1 comment

Comments

@elianiva
Copy link
Contributor

elianiva commented Mar 9, 2021

Hi there! I like this plugin and I've been wanting to make something similar for a while but you've done that for me, so thanks :)
I have a suggestion though, since we're depending on nvim-treesitter, why don't we use the module template provided by nvim-treesitter for this plugin? So we can do the setup together with nvim-treesitter and I think that's better. An example for that is this repo https://github.com/p00f/nvim-ts-rainbow.

-- we can do this
require'nvim-treesitter.configs'.setup {
  autotag = {
    enable = true,
    filetypes = { "html" , "xml" },
  }
  -- other nvim-treesitter config
  -- goes here
}

-- instead of separate setup like this
require('nvim-ts-closetag').setup({
  filetypes = { "html" , "xml" },
})
@windwp
Copy link
Owner

windwp commented Mar 10, 2021

I update it you can check readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants