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:
I’d love feedback — thanks!
by Rob Warner · Published · Updated
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/ |
I’d love feedback — thanks!
I blog non-technical stuff at https://crispylemon.com
I blog about my travels at https://sandyfragments.com