commit 9307e9ed8a198e0989127feeda7406573379a66d
parent 54c643ab19b3578699d1352f54b1092102e1f215
Author: hhvn <dev@hhvn.uk>
Date: Sun, 31 Oct 2021 23:11:28 +0000
.c/n/s/todo.vim: use setlocal for tabs
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.config/nvim/syntax/todo.vim b/.config/nvim/syntax/todo.vim
@@ -2,13 +2,14 @@ if exists("b:current_syntax")
finish
endif
-set ts=4 sw=4 expandtab
+setlocal ts=4 sw=4 expandtab
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 todoItemUnsure '[\?]' contained
syn match todoCategory '^#.*' contains=todoCategoryContent,todoCategoryDelim
syn match todoCategoryDelim '[#]*' contained
syn match todoCategoryContent '[^#]*' contained
@@ -17,6 +18,7 @@ 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 todoItemUnsure ctermfg=202 cterm=bold guifg=#aa0000 gui=bold
hi link todoItemProgress Operator
hi link todoItemPrepared Operator
hi link todoCategoryContent Title