Riley Bruins | 36e974f | 2024-05-19 09:30:12 +0200 | [diff] [blame] | 1 | " Vim filetype plugin |
| 2 | " Language: graphql |
Jon Parise | 4ce1cb5 | 2024-12-23 09:57:42 +0100 | [diff] [blame] | 3 | " Maintainer: Jon Parise <jon@indelible.org> |
| 4 | " Filenames: *.graphql *.graphqls *.gql |
| 5 | " URL: https://github.com/jparise/vim-graphql |
| 6 | " License: MIT <https://opensource.org/license/mit> |
| 7 | " Last Change: 2024 Dec 21 |
Riley Bruins | 36e974f | 2024-05-19 09:30:12 +0200 | [diff] [blame] | 8 | |
| 9 | if exists('b:did_ftplugin') |
| 10 | finish |
| 11 | endif |
| 12 | let b:did_ftplugin = 1 |
| 13 | |
Jon Parise | 4ce1cb5 | 2024-12-23 09:57:42 +0100 | [diff] [blame] | 14 | setlocal comments=:# |
| 15 | setlocal commentstring=#\ %s |
| 16 | setlocal formatoptions-=t |
| 17 | setlocal iskeyword+=$,@-@ |
| 18 | setlocal softtabstop=2 |
| 19 | setlocal shiftwidth=2 |
| 20 | setlocal expandtab |
Riley Bruins | 36e974f | 2024-05-19 09:30:12 +0200 | [diff] [blame] | 21 | |
Jon Parise | 4ce1cb5 | 2024-12-23 09:57:42 +0100 | [diff] [blame] | 22 | let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<' |