Added table highlight to autoformat blacklist

mattly/vim-markdown-enhancements defines a highlight for tables in markdown. We can use that to avoid inadvertent reformat of those tables by not enabling autoformat in those tables.
This commit is contained in:
Reed Esau
2014-08-27 05:17:38 -06:00
parent 14f49ac597
commit ad8c4b4504
2 changed files with 3 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ fun! s:imap(preserve_completion, key, icmd)
endf
fun! s:enable_autoformat()
" don't enable autoformat if in a code block (TODO or table)
" don't enable autoformat if in a code block or table
let l:okay_to_enable = 1
for l:sid in synstack(line('.'), col('.'))
if match(synIDattr(l:sid, 'name'),