jparise / vim-graphql

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

Fix GraphQL detection in 'indentexpr' functions #70

Closed jparise closed 3 years ago

jparise commented 3 years ago

Vimscript evaluates the expression 0 ==# "Foo as truthy, which breaks chaining to the base 'indentexpr' function for non-GraphQL lines.

Fix this by specifying an explicit default value (empty string).