Skip to content

Commit d6d6bbc

Browse files
committed
Better documentation on additional file extensions
Suggest adding file detection autocommands to after/ftdetect/graphql.vim rather than ad hoc individual files. The previous approach worked fine, but this is more generic, consistent, and easier to document.
1 parent 7bb1cfc commit d6d6bbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Complete syntax highlighting is enable for the `graphql` [filetype][]. This
2727
filetype is automatically selected for filenames ending in `.graphql`,
2828
`.graphqls`, and `.gql`.
2929

30-
If you would like to enable automatic syntax support for more types of files
31-
(for example `*.prisma`), create a new file named `~/.vim/ftdetect/prisma.vim`
32-
containing:
30+
If you would like to enable automatic syntax support for more file extensions
31+
(e.g., `*.prisma`), create a file named `~/.vim/after/ftdetect/graphql.vim`
32+
containing autocommand lines like:
3333

3434
```vim
3535
au BufNewFile,BufRead *.prisma setfiletype graphql

0 commit comments

Comments
 (0)