mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	Contribute the core of my vim-graphql project (ftplugin, indent, syntax)
to the Vim project. This replaces the basic ftplugin support that was
already in the runtime with a more complete set of filetype settings. I
can assume maintainership for all of these files.
I'll continue to maintain the higher-level embedded filetype support
separately (in vim-graphql) for now, because it's fairly complex, but we
can consider integrating that code directly into vim later.
runtime files use the MIT license.
closes: vim/vim#16273
4ce1cb5bf1
Co-authored-by: Jon Parise <jon@indelible.org>
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			553 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			553 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
" Vim filetype plugin
 | 
						|
" Language:	graphql
 | 
						|
" Maintainer:	Jon Parise <jon@indelible.org>
 | 
						|
" Filenames:	*.graphql *.graphqls *.gql
 | 
						|
" URL:		https://github.com/jparise/vim-graphql
 | 
						|
" License:	MIT <https://opensource.org/license/mit>
 | 
						|
" Last Change:	2024 Dec 21
 | 
						|
 | 
						|
if exists('b:did_ftplugin')
 | 
						|
  finish
 | 
						|
endif
 | 
						|
let b:did_ftplugin = 1
 | 
						|
 | 
						|
setlocal comments=:#
 | 
						|
setlocal commentstring=#\ %s
 | 
						|
setlocal formatoptions-=t
 | 
						|
setlocal iskeyword+=$,@-@
 | 
						|
setlocal softtabstop=2
 | 
						|
setlocal shiftwidth=2
 | 
						|
setlocal expandtab
 | 
						|
 | 
						|
let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<'
 |