feat: add commands, mappings, and plugin entry point

Problem: need user-facing :Todo command, buffer-local keymaps,
Plug mappings, completion toggle, help float, archive, and
syntax highlighting.

Solution: add init.lua with command dispatcher, toggle complete/
priority, date prompt, archive purge, and help float. Add
plugin/todo.lua entry point with :Todo command and Plug mappings.
Add syntax/todo.vim for conceal and priority highlighting.
This commit is contained in:
Barrett Ruth 2026-02-24 15:09:43 -05:00
parent c03412837d
commit 5284ef6047
3 changed files with 318 additions and 0 deletions

14
syntax/todo.vim Normal file
View file

@ -0,0 +1,14 @@
if exists('b:current_syntax')
finish
endif
syntax match taskId /^\/\d\+\// conceal
syntax match taskHeader /^\S.*$/ contains=taskId
syntax match taskPriority /!\ze / contained
syntax match taskLine /^\/\d\+\/ .*$/ contains=taskId,taskPriority
highlight default link taskHeader TodoHeader
highlight default link taskPriority TodoPriority
highlight default link taskLine Normal
let b:current_syntax = 'task'