Ctags for GraphQL Schemas

I’ve been developing some GraphQL services lately. Since I use Neovim (and fzf) for editing, I wanted Ctags support for my schema files. Here’s what I came up with:

--langdef=graphql
--langmap=graphql:.graphql
--regex-graphql=/^type[ \t]+([^{]+){/\1/t,type/
--regex-graphql=/^input[ \t]+([^{]+){/\1/i,input/
--regex-graphql=/^[ \t]*([a-zA-Z]+)\(/\1/f,func/
view raw .ctags hosted with ❤ by GitHub

I’d love feedback — thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.