[vim] Add some Lua snippets to support Playdate development
This commit is contained in:
		
							parent
							
								
									7eed873e02
								
							
						
					
					
						commit
						4cc4f4119e
					
				
					 1 changed files with 22 additions and 0 deletions
				
			
		
							
								
								
									
										22
									
								
								config/nvim/UltiSnips/lua.snippets
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								config/nvim/UltiSnips/lua.snippets
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
# lua.snippets
 | 
			
		||||
# vim: set ts=8 sw=8 sts=8 noet list:
 | 
			
		||||
# Eryn Wells <eryn@erynwells.me>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
snippet pd
 | 
			
		||||
local pd <const> = playdate
 | 
			
		||||
endsnippet
 | 
			
		||||
 | 
			
		||||
snippet gfx
 | 
			
		||||
local gfx <const> = playdate.graphics
 | 
			
		||||
endsnippet
 | 
			
		||||
 | 
			
		||||
snippet sprite
 | 
			
		||||
class("${1:Sprite}").extends(gfx.sprite)
 | 
			
		||||
 | 
			
		||||
function $1:init()
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function $1:update()
 | 
			
		||||
end
 | 
			
		||||
endsnippet
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue