test find

main
borja 1 year ago
parent 981a084909
commit ee6ddbdf4a

@ -85,7 +85,7 @@ local function remove_todo()
local line = vim.api.nvim_get_current_line() local line = vim.api.nvim_get_current_line()
local index, spaces = string.find(line, "^%s*") local index, spaces = string.find(line, "^%s*")
if string.match(line, openpattern) or string.match(line, closedpattern) then if string.find(line, openpattern) or string.find(line, closedpattern) then
print("encontrado") print("encontrado")
line = string.gsub(line, openpattern, "") line = string.gsub(line, openpattern, "")
line = string.gsub(line, closedpattern, "") line = string.gsub(line, closedpattern, "")

Loading…
Cancel
Save