vim.opt_local.textwidth = 0 vim.keymap.set('n', '', function() require('mod.utils').edit_current_line(function(lines) -- will only run for the current line return vim.tbl_map(function(ln) if string.sub(ln, 1, 2) == 'x ' then return string.sub(ln, 3, -1) else return 'x ' .. ln end end, lines) end) end, { desc = 'Check todo', buffer = 0 })