| 
									
										
										
										
											2024-07-15 20:00:48 +02:00
										 |  |  | " Vim filetype plugin file | 
					
						
							|  |  |  | " Language:    Typst | 
					
						
							|  |  |  | " Maintainer:  Gregory Anders | 
					
						
							|  |  |  | " Last Change: 2024-07-14 | 
					
						
							|  |  |  | " Based on:    https://github.com/kaarmu/typst.vim | 
					
						
							| 
									
										
										
										
											2024-05-20 05:08:49 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | if exists('b:did_ftplugin') | 
					
						
							|  |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | let b:did_ftplugin = 1 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-15 20:00:48 +02:00
										 |  |  | compiler typst | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-20 05:08:49 -07:00
										 |  |  | setlocal commentstring=//\ %s | 
					
						
							| 
									
										
										
										
											2024-07-15 20:00:48 +02:00
										 |  |  | setlocal comments=s1:/*,mb:*,ex:*/,:// | 
					
						
							|  |  |  | setlocal formatoptions+=croq | 
					
						
							|  |  |  | setlocal suffixesadd=.typ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let b:undo_ftplugin = 'setl cms< com< fo< sua<' | 
					
						
							| 
									
										
										
										
											2024-05-20 05:08:49 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-15 20:00:48 +02:00
										 |  |  | if get(g:, 'typst_conceal', 0) | 
					
						
							|  |  |  |   setlocal conceallevel=2 | 
					
						
							|  |  |  |   let b:undo_ftplugin .= ' cole<' | 
					
						
							|  |  |  | endif |