arregla bug

main
borja 1 year ago
parent 98808b7c0e
commit bcd0ca26aa

@ -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 = ""

Loading…
Cancel
Save