|
|
|
@ -29,7 +29,7 @@ vim.keymap.set("i", "<CR>", press_enter, { desc = "On enter", noremap = true, ex
|
|
|
|
|
|
|
|
|
|
local function toggle_todo()
|
|
|
|
|
-- create a variable called openpattern with a pattern that matches a string that starts with any amount of spaces or tabs followed by "- [ ]"
|
|
|
|
|
local openpattern = "^%s*%- %[[ x]%]"
|
|
|
|
|
local openpattern = "^%s*%- %[[ ]%]"
|
|
|
|
|
|
|
|
|
|
-- create a variable called closepattern with a pattern that matches a string that starts with any amount of spaces or tabs followed by "- [x]"
|
|
|
|
|
local closedpattern = "^%s*%- %[[x]%]"
|
|
|
|
|