|  |  | @ -61,7 +61,7 @@ local function add_todo() | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	if index == 1 and not string.match(line, openpattern) and not string.match(line, closedpattern) then |  |  |  | 	if index == 1 and not string.match(line, openpattern) and not string.match(line, closedpattern) then | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if index == 1 and spaces == 0 then |  |  |  | 		if index == 1 and spaces == 0 then | 
			
		
	
		
		
			
				
					
					|  |  |  | 			line = spaces .. "- [ ] " .. line |  |  |  | 			line = "- [ ] " .. line | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			vim.api.nvim_set_current_line(line) |  |  |  | 			vim.api.nvim_set_current_line(line) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		elseif index == 1 and spaces > 0 then |  |  |  | 		elseif index == 1 and spaces > 0 then | 
			
		
	
		
		
			
				
					
					|  |  |  | 			local spacestring = "" |  |  |  | 			local spacestring = "" | 
			
		
	
	
		
		
			
				
					|  |  | 
 |