jparise / vim-graphql

A Vim plugin that provides GraphQL file detection, syntax highlighting, and indentation.
MIT License
490 stars 25 forks source link

Document how to configure for custom extensions? #30

Closed serixscorpio closed 5 years ago

serixscorpio commented 5 years ago

Hi, thank you for making this plugin. I appreciate it!

I use prisma which uses a custom file extension for its data model definition (ex. datamodel.prisma). The *.prisma also uses GraphQL SDL. Based on your recommendation on another similar issue, I was able to get the syntax highlighting to work for *.prisma at https://github.com/serixscorpio/vim-graphql/commit/80b93f6604da99f61bf40be70ed19d0e6f232b5f. If you think it makes sense to add built-in support for additional extensions, I can turn it into a PR. Otherwise feel free to close this issue. Thanks again!

jparise commented 5 years ago

Yes, I think it would be helpful to mention this in the README.md. Thanks!