dhruvasagar / vim-table-mode

VIM Table Mode for instant table creation.
2.1k stars 97 forks source link

vim-table override syntax highlight #180

Open Zeioth opened 4 years ago

Zeioth commented 4 years ago

I've tried vim-notes with vim-table-mode and the table seem to override the syntax of vim-notes. It's this the desired behavior? todo

dhruvasagar commented 4 years ago

@Zeioth You can set let g:table_mode_syntax = 0 to disable the syntax altogether. Table Mode table syntax is injected into the buffer (for all filetypes) dynamically when table mode is enabled.

dhruvasagar commented 4 years ago

@Zeioth But I see your point, table mode syntax was meant to only define syntax for the table boundaries. Content within the table should not be impacted, however, I am not a vim syntax expert to know if this is possible. I will look into it.

tim-hilt commented 2 years ago

Just to chime in: I noticed additonally weird behavior: I have the following augroup set up to automatically activate table-mode, when I open a Markdown-file:

  augroup MarkdownTables
    autocmd!
    autocmd FileType markdown call tablemode#Enable()
  augroup END

Now, when I manually activate table-mode, the highlighting is applied: Screenshot_20220216_144647 but when it's activated via the augroup, it looks like this: Screenshot_20220216_144724 I use neovim-nightly, if that makes any difference.