You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
476 B
17 lines
476 B
" Vim syntax file
|
|
" Add checkboxes to *.md files
|
|
" source: https://gist.github.com/huytd/668fc018b019fbc49fa1c09101363397
|
|
|
|
" Custom conceal
|
|
syntax match todoCheckbox "\[\ \]" conceal cchar=☐
|
|
syntax match todoCheckbox "\[[xX]\]" conceal cchar=☑
|
|
|
|
syntax match todoCheckbox "- \[\ \]" conceal cchar=☐
|
|
syntax match todoCheckbox "- \[[xX]\]" conceal cchar=☑
|
|
|
|
hi def link todoCheckbox Todo
|
|
|
|
highlight Conceal ctermbg=NONE ctermfg=NONE guibg=NONE guifg=NONE
|
|
|
|
setlocal cole=1
|