|  |  | @ -57,8 +57,9 @@ local function add_todo() | 
			
		
	
		
		
			
				
					
					|  |  |  | 	local closedpattern = "^%s*%- %[[x]%]" |  |  |  | 	local closedpattern = "^%s*%- %[[x]%]" | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	local line = vim.api.nvim_get_current_line() |  |  |  | 	local line = vim.api.nvim_get_current_line() | 
			
		
	
		
		
			
				
					
					|  |  |  | 	local spaces = string.find(line, "%S") |  |  |  | 	local spaces = string.match(line, "^%s*") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 	print(spaces) |  |  |  | 	print(spaces) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	-- if not string.match(line, openpattern) and not string.match(line, closedpattern) then |  |  |  | 	-- if not string.match(line, openpattern) and not string.match(line, closedpattern) then | 
			
		
	
		
		
			
				
					
					|  |  |  | 	-- 	line = spaces .. "- [ ] " .. line |  |  |  | 	-- 	line = spaces .. "- [ ] " .. line | 
			
		
	
		
		
			
				
					
					|  |  |  | 	-- 	vim.api.nvim_set_current_line(line) |  |  |  | 	-- 	vim.api.nvim_set_current_line(line) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |