在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jparise/vim-graphql开源软件地址(OpenSource Url):https://github.com/jparise/vim-graphql开源编程语言(OpenSource Language):Vim Script 97.6%开源软件介绍(OpenSource Introduction):GraphQL for VimThis Vim plugin provides GraphQL file detection, syntax highlighting, and indentation. It currently targets the June 2018 edition of the GraphQL specification. InstallationThis plugin requires Vim version 8 or later. Equivalent Neovim versions are also supported. vim-plugUsing
Using Vim Packagesmkdir -p ~/.vim/pack/jparise/start
cd ~/.vim/pack/jparise/start
git clone https://github.com/jparise/vim-graphql.git graphql
vim -u NONE -c "helptags graphql/doc" -c q Syntax HighlightingComplete syntax highlighting is enable for the If you would like to enable automatic syntax support for more file extensions
(e.g., au BufNewFile,BufRead *.prisma setfiletype graphql JavaScript and TypeScript SupportGraphQL syntax support inside of ES2015 template literals is provided. It works "out of the box" with Vim 8.2+'s JavaScript and TypeScript language support. The extended JavaScript syntax provided by the vim-javascript plugin is also supported. For older versions of Vim, TypeScript support can be enabled by installing the yats plugin. const query = gql`
{
user(id: ${uid}) {
firstName
lastName
}
}
`; The list of recognized tag names is defined by the You can also add a const query = `# gql
{
user(id: ${uid}) {
firstName
lastName
}
}
`; Syntax highlighting within Syntax highlighting is also available within Vue templates. ReasonML SupportGraphQL syntax support inside of ReasonML template strings using graphql-ppx is available. [%graphql {|
query UserQuery {
user {
id
name
}
}
|}]; The ReScript SupportGraphQL syntax support inside of ReScript strings is available. %graphql(`
query UserQuery {
user {
id
name
}
}
`) The PHP SupportGraphQL syntax inside of heredoc and nowdoc strings is supported. The
string identifier must be named <?php
$my_query = <<<GQL
{
user(id: ${uid}) {
firstName
lastName
}
}
GQL; Language Server Protocol SupportLanguage Server Protocol (LSP) implementations can enable editor features like schema-aware completion.
TestingThe test suite uses Vader.vim. To run all of the tests from the command line: make test LicenseThis code is released under the terms of the MIT license. See |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论