From a4c2acf107ab32ec4dee6612367b9834d1459562 Mon Sep 17 00:00:00 2001 From: borja Date: Mon, 27 Nov 2023 19:17:51 +0100 Subject: [PATCH] cambio por igual a false --- plugin/todoer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/todoer.lua b/plugin/todoer.lua index 17034b2..3249e02 100644 --- a/plugin/todoer.lua +++ b/plugin/todoer.lua @@ -58,7 +58,7 @@ local function add_todo() local line = vim.api.nvim_get_current_line() - if !string.match(line, openpattern) and !string.match(line, closedpattern) then + if string.match(line, openpattern) == false and string.match(line, closedpattern) == false then line = "- [ ] " .. line vim.api.nvim_set_current_line(line) vim.api.nvim_feedkeys("A", "n", true)