dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit f4a1bddedcd5f269e0beb8450610f2e6544ae772
parent 77bd44597bee508c402a58bccd0903a6f29c6c49
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 20 Jun 2021 15:04:04 +0100

.c/n/s/todo.vim: add todo syntax highlighting

Diffstat:
A.config/nvim/syntax/todo.vim | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/.config/nvim/syntax/todo.vim b/.config/nvim/syntax/todo.vim @@ -0,0 +1,23 @@ +if exists("b:current_syntax") + finish +endif + +syn match todoItem '\[.\]' contains=todoItemDone,todoItemRevision,todoItemProgress,todoItemPrepared +syn match todoItemDone 'X' contained +syn match todoItemRevision '\*' contained +syn match todoItemProgress '-' contained +syn match todoItemPrepared '\.' contained +syn match todoCategory '^#.*' contains=todoCategoryContent,todoCategoryDelim +syn match todoCategoryDelim '[#]*' contained +syn match todoCategoryContent '[^#]*' contained +syn match todoBullet '\s*[-+*]' + +hi link todoItem Operator +hi todoItemDone ctermfg=46 cterm=bold guifg=#00aa00 gui=bold +hi todoItemRevision ctermfg=88 cterm=bold guifg=#aa0000 gui=bold +hi link todoItemProgress Operator +hi link todoItemPrepared Operator +hi link todoCategoryContent Title +hi link todoCategoryDelim Preproc +hi link todoCategory todoCategoryDelim +hi link todoBullet Statement