diff --git a/plugin/todoer.lua b/plugin/todoer.lua index cd3c14b..d88897e 100644 --- a/plugin/todoer.lua +++ b/plugin/todoer.lua @@ -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 spaces == 0 then - line = spaces .. "- [ ] " .. line + line = "- [ ] " .. line vim.api.nvim_set_current_line(line) elseif index == 1 and spaces > 0 then local spacestring = ""