jparise / vim-graphql

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

Indent the first line within a template string #89

Closed jparise closed 1 year ago

jparise commented 1 year ago

If the previous line isn't GraphQL, assume we're part of a template string and indent this new line within it.

This is (hopefully) an improvement over the previous behavior which preserved the indentation of the previous line in these cases.

Closes #87