diff options
| author | Robert Günzler <r@gnzler.io> | 2024-11-25 13:30:37 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2024-11-25 13:58:25 +0100 |
| commit | 23de12baba9fbfc4ca24581b37c374aa5345cc25 (patch) | |
| tree | e4b3c421bad572eb85a1089eaad44dc3059ab6e6 /.vim/after/ftplugin/todofile.lua | |
| parent | 18e3848110da0a59843058927ea04b496f5db2a5 (diff) | |
update nvim config
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
| -rw-r--r-- | .vim/after/ftplugin/todofile.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.vim/after/ftplugin/todofile.lua b/.vim/after/ftplugin/todofile.lua deleted file mode 100644 index 2080d39..0000000 --- a/.vim/after/ftplugin/todofile.lua +++ /dev/null @@ -1,23 +0,0 @@ -local function toggle_todo() - local ln, n = vim.api.nvim_get_current_line(), 0 - ln, n = string.gsub(ln, 'TODO', 'DONE', 1) - if n > 0 then - goto set_line - end - ln, n = string.gsub(ln, 'DONE', 'TODO', 1) - if n > 0 then - goto set_line - end - ln, n = string.gsub(ln, '^(-|*) ', '%1 TODO ') - if n > 0 then - goto set_line - end - - goto exit -- skip over set_current_line - - ::set_line:: - vim.api.nvim_set_current_line(ln) - - ::exit:: -end -vim.keymap.set('n', '<space><space>', toggle_todo, { desc = 'toggle todo', buffer = true }) |