From bcd0ca26aa57237f51e04d6eb11ecf8ab3a707be Mon Sep 17 00:00:00 2001 From: borja Date: Mon, 27 Nov 2023 23:49:12 +0100 Subject: [PATCH] arregla bug --- plugin/todoer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ""