Open eedrah opened 6 years ago
Example file:
import React from 'react'
import gql from 'graphql-tag'
import { Query } from 'react-apollo'
export default ({ match }) => (
<Query
query={gql`
{
project(id: ${match.params.id}) {
id
owner {
id
name
}
title
fields
projectSchema {
id
name
version
draftLayer
presentationLayer
}
}
}
`}
>
{({ loading, error, data }) => {
if (loading) return <p>Loading...</p>
if (error) return <p>Error :(</p>
return JSON.stringify(data.project)
}}
</Query>
)
Issue:
The combination of mxw/vim-jsx and junegunn/rainbow_parentheses.vim, with a custom g:rainbow#pairs list, breaks syntax highlighting.
Minimal .vimrc to replicate:
and then call the command
:RainbowParentheses
after, to toggle.Temporary Solution
Disable the custom
g:rainbow#pairs
line.